DracoCompression
ReferencesGoogle Draco compression for mesh and point cloud data
Finalizer
Properties
The attribute position for normals when compressed
The attribute position for texture coordinates when compressed
The attribute position for vertices when compressed
Methods
Compress a mesh
Parameters:
| mesh (Mesh) | mesh to compress |
| options (DracoCompressionOptions) | options used to determine how the compression will occur |
Returns: instance of class representing the compressed data
Compress a mesh using default compression options.
Parameters:
| mesh (Mesh) | mesh to compress |
Returns: instance of class representing the compressed data
Compress a point cloud
Parameters:
| pointCloud (PointCloud) | point cloud to compress |
| options (DracoCompressionOptions) | options used to determine how the compression will occur |
Returns: instance of class representing the compressed data
Compress a point cloud
Parameters:
| pointCloud (PointCloud) | point cloud to compress |
Returns: instance of class representing the compressed data
Decompress base64 encoded version of Draco data into either a mesh or point cloud
Parameters:
| encoded (string) | compressed Draco data |
Returns: Mesh or point cloud on success. null on failure
Decompress data into either a mesh or point cloud.
Parameters:
| bytes (byte[]) | compressed Draco data |
Returns: Mesh or point cloud on success. null on failure
Read compressed data from disk and decompress to RhinoCommon geometry
Parameters:
| path (string) | path to read from |
Returns: Mesh or point cloud on success. null on failure
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
Convert byte array of Draco compressed data into a base64 encoded string