Last updated 2 months ago
Retrieves the settings of a object, or the object.
getPrimitives( objectName: string ): Promise<PrimitiveNodeSettings>
objectName
Specifies what object do we want to retrieve the information from.
string
Usage:
await modelApi.getPrimitives('Box');
Return value:
{ "computeNormals": true, "boxDimensions": { "x": 100, "y": 100, "z": 100 }, "boxSegments": { "x": 1, "y": 1, "z": 1 }, "roundnessRadius": 4, "roundnessRadiusSegments": 4, "roundnessEnabled": true }