Last updated 2 months ago
Applies new settings to a object, or the object.
setPrimitives( objectName: string, primitiveSettings: PrimitiveNodeSettings ): Promise<void>
objectName
Specifies what object do we want to retrieve the information from.
string
primitiveSettings
New settings to be applied to the object.
Usage:
await modelApi.setPrimitives('Box', { boxDimensions: { x: 100, y: 100, z: 200 }, boxSegments: { x: 10, y: 10, z: 20 }, roundnessEnabled: true, roundnessRadius: 8, roundnessRadiusSegments: 8, computeNormals: true });