Creates a square plane primitive and adds it to the scene.
createPlane(options?: CreatePrimitiveOptions): Promise<SceneObject>
options
CreatePrimitiveOptions
No
Transform and primitive-specific settings
width
number
Width
depth
Depth
widthSegments
Segments along width
depthSegments
Segments along depth
roundnessEnabled
boolean
Enable rounded corners
roundnessRadius
Roundness radius
roundnessRadiusSegments
Segments for roundness
computeNormals
Recompute normals
Promise<SceneObject> - the created object.
Promise<SceneObject>
Last updated 5 months ago
const plane = await api.createPlane({ primitiveSettings: { width: 4, depth: 4, widthSegments: 10, depthSegments: 10 }, });