Skip to content
On this page

Interface: BoxMeshProps ​

WebSG.BoxMeshProps

BoxMeshProps is an interface for defining properties of a box mesh.

Table of contents ​

Properties ​

Properties ​

material ​

• Optional material: Material

The material to use for the mesh.

Defined in ​

websg.d.ts:607


segments ​

• Optional segments: ArrayLike<number>

The number of segments to use in the x,y,z directions.

Defined in ​

websg.d.ts:603


size ​

• Optional size: ArrayLike<number>

The size of the mesh in meters in the x,y,z directions.

Defined in ​

websg.d.ts:599