Retrieves the settings of a Primitive object, or the Backdrop 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 }
Last updated 1 month ago