Parameters used to create a BoxGeometry

interface BoxGeometryParams {
    widthSegments?: number;
    heightSegments?: number;
    depthSegments?: number;
    instancesCount?: number;
    topology?: GPUPrimitiveTopology;
    vertexBuffers?: VertexBufferParams[];
    mapBuffersAtCreation?: boolean;
}

Hierarchy (view full)

Properties

widthSegments?: number

Number of segments along the X axis

heightSegments?: number

Number of segments along the Y axis

depthSegments?: number

Number of segments along the Z axis

instancesCount?: number

Number of geometry instances to draw

topology?: GPUPrimitiveTopology

Topology to use with this Geometry, sent to the render pipeline. Whether to draw triangles, lines or points (see https://www.w3.org/TR/webgpu/#enumdef-gpuprimitivetopology)

vertexBuffers?: VertexBufferParams[]

Array of VertexBufferParams used to create VertexBuffer on geometry creation

mapBuffersAtCreation?: boolean

Whether to map the vertex buffers at creation.