Class: Mesh
Represents a Mesh.
Implements
Constructors
constructor
• new Mesh(properties?
): Mesh
Constructs a new Mesh.
Parameters
Name | Type | Description |
---|---|---|
properties? | IMesh | Properties to set |
Returns
Properties
geometries
• geometries: IGeometry
[]
Mesh geometries.
Implementation of
level
• level: number
Mesh level.
Implementation of
Methods
create
▸ create(properties?
): Mesh
Creates a new Mesh instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | IMesh | Properties to set |
Returns
Mesh instance
decode
▸ decode(reader
, length?
): Mesh
Decodes a Mesh message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
Mesh
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): Mesh
Decodes a Mesh message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
Mesh
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing