Methods
Object
getObjects
Returns information about the specified objects.
JS
1const objectIds = ["object-1, object-2"];
2
3const objectInfos = viewer3d.getObjects(objectIds);
List of object ids to limit result, returns all objects by default.
Type | Required |
---|---|
Array[String] | No |
List of object information.
If any of the ids in the list are invalid, the corresponding entry in the returned list will be null.
Type |
---|
Array[Object or Null] |
Properties
Name | Type | Description |
---|---|---|
id | String | Id of the object |
modelId | String | Id of the model |
triangleCount | Number | Number of triangles in the object geometry |
JS
1[
2 {
3 id: "192042324556",
4 modelId: "my-model-id",
5 triangleCount: 60,
6 },
7];