WorldMeshBlockData

lumin. WorldMeshBlockData

new WorldMeshBlockData()

Constructor.

Classes

Id

Methods

getAABB() → {lumin.math.AABB}

Returns the local AABB for the mesh.

Returns:
Type
lumin.math.AABB

getCoordinateFrameInvTransform() → {mat4}

Returns the offset inverse transform. This can be used to put a world-space position
into the block's frame.

Returns:

coordinate frame inverse transform

Type
mat4

getCoordinateFrameOffset() → {vec3}

Returns the offset that should be applied to the block's vertices.

Returns:

coordinate frame offset

Type
vec3

getCoordinateFrameRotation() → {quat}

Returns the rotation that should be applied to the block's vertices.

Returns:

coordinate frame rotation

Type
quat

getCoordinateFrameTransform() → {mat4}

Returns the offset transform that should be applied to the block's vertices.

Returns:

coordinate frame transform

Type
mat4

getId() → {lumin.WorldMeshBlockData.Id}

Returns the block id.

Returns:
Type
lumin.WorldMeshBlockData.Id

getIndices() → {Array.<number>}

Returns the indices for this block.

Returns:
Type
Array.<number>

getNormals() → {Array.<vec3>}

Returns the vertex normals for this block.

Returns:
Type
Array.<vec3>

getVertices() → {Array.<vec3>}

Returns the vertices for this block.

Returns:
Type
Array.<vec3>

isValid() → {boolean}

Returns if the data is valid.

Returns:
Type
boolean