Isosurface
Implements:
An isosurface, the result of a contouring process.
Constructor Summary
Public Constructor | ||
public |
constructor(indices: Uint16Array, positions: Float32Array, normals: Float32Array, uvs: Float32Array, materials: Uint8Array) Constructs a new isosurface. |
Member Summary
Public Members | ||
public |
A set of vertex indices that describe triangles. |
|
public |
A set of material indices. |
|
public |
A set of normals. |
|
public |
A set of vertices. |
|
public |
A set of UV coordinates. |
Method Summary
Public Methods | ||
public |
createTransferList(transferList: Array): Transferable[] Creates a list of transferable items. |
|
public |
deserialize(object: Object): Deserializable Adopts the given serialised isosurface. |
|
public |
Serialises this isosurface. |
Public Constructors
public constructor(indices: Uint16Array, positions: Float32Array, normals: Float32Array, uvs: Float32Array, materials: Uint8Array) source
Constructs a new isosurface.
Params:
Name | Type | Attribute | Description |
indices | Uint16Array | Triangle indices. |
|
positions | Float32Array | Generated vertices. |
|
normals | Float32Array | Generated normals. |
|
uvs | Float32Array | Generated uvs. |
|
materials | Uint8Array | Generated materials. |
Public Members
Public Methods
public createTransferList(transferList: Array): Transferable[] source
Creates a list of transferable items.
Params:
Name | Type | Attribute | Description |
transferList | Array |
|
An optional target list. The transferable items will be added to this list. |
Return:
Transferable[] | The transfer list. |
public deserialize(object: Object): Deserializable source
Adopts the given serialised isosurface.
Params:
Name | Type | Attribute | Description |
object | Object | A serialised isosurface. Can be null. |