Static Member Summary
Static Public Members | ||
public static get |
The global isovalue. |
|
public static set |
Warning: changing the isovalue is not recommended. |
|
public static get |
The material grid resolution. |
|
public static set |
Warning: this value should only be set once. |
Constructor Summary
Public Constructor | ||
public |
constructor(initialize: Boolean) Constructs a new set of Hermite data. |
Member Summary
Public Members | ||
public get |
Indicates whether this data is currently compressed. |
|
public |
The edge data. |
|
public get |
Indicates whether this data container is empty. |
|
public get |
Indicates whether this data container is full. |
|
public |
The grid points. |
|
public |
Describes how many material indices are currently solid: |
|
public get |
Indicates whether this data is currently gone. |
|
public |
Run-length compression data. |
Method Summary
Public Methods | ||
public |
clear(): HermiteData Removes all data. |
|
public |
compress(target: HermiteData): HermiteData Compresses this data. |
|
public |
createTransferList(transferList: Array): Transferable[] Creates a list of transferable items. |
|
public |
decompress(target: HermiteData): HermiteData Decompresses this data. |
|
public |
deserialize(object: Object): Deserializable Adopts the given serialised data. |
|
public |
Serialises this data. |
|
public |
set(data: HermiteData): HermiteData Adopts the given data. |
|
public |
setMaterialIndex(index: Number, value: Number) Sets the specified material index. |
Static Public Members
public static get isovalue: Number source
The global isovalue.
A constant distance value that denotes the boundaries of SDFs.
Public Constructors
Public Members
Public Methods
public compress(target: HermiteData): HermiteData source
Compresses this data.
Params:
Name | Type | Attribute | Description |
target | HermiteData |
|
A target data set. The compressed data will be assigned to this set. |
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 decompress(target: HermiteData): HermiteData source
Decompresses this data.
Params:
Name | Type | Attribute | Description |
target | HermiteData |
|
A target data set. If none is provided, the compressed data will be replaced with the decompressed data. |
public deserialize(object: Object): Deserializable source
Adopts the given serialised data.
Params:
Name | Type | Attribute | Description |
object | Object | Serialised Hermite data. Can be null. |
public serialize(deflate: Boolean): Object source
Serialises this data.
Params:
Name | Type | Attribute | Description |
deflate | Boolean |
|
Whether the data should be compressed if possible. |
public set(data: HermiteData): HermiteData source
Adopts the given data.
Params:
Name | Type | Attribute | Description |
data | HermiteData | The data to adopt. |