getModels
Returns the specified models.
Example
Usage
const modelIds = ["model-id-1, model-id-2"];
const modelInfos = viewer3d.getModels(modelIds);Parameters
modelIds
List of model ids to limit result, returns all models by default.
Type | Required |
|---|---|
Array[String] | No |
Return Value
List of models.
Type |
|---|
Array[Object] |
Properties
Example
[
{
id: "model-id-1",
boundingBox: {
max: {
x: 100,
y: 100,
z: 0
},
min: {
x: 0,
y: 0,
z: 0
}
},
originalBoundingBox: {
max: {
x: 100,
y: 100,
z: 0
},
min: {
x: 0,
y: 0,
z: 0
}
}
}
];