DracoCompression
Google Draco compression for mesh and point cloud data
Inheritance Hierarchy
System.Object
Rhino.FileIO.DracoCompression
Namespace: Rhino.FileIO
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class DracoCompression : IDisposable
The DracoCompression type exposes the following members.
Properties
Name
Description
Public Property
NormalAttributePosition
The attribute position for normals when compressed
Public Property
TextureCoordinatesAttributePosition
The attribute position for texture coordinates when compressed
Public Property
VertexAttributePosition
The attribute position for vertices when compressed
Public Property
VertexColorAttributePosition
The attribute position for vertex colors when compressed
Methods
Name
Description
Public Method
Static Member
Compress(Mesh)
Compress a mesh using default compression options.
Public Method
Static Member
Compress(PointCloud)
Compress a point cloud
Public Method
Static Member
Compress(Mesh, DracoCompressionOptions)
Compress a mesh
Public Method
Static Member
Compress(PointCloud, DracoCompressionOptions)
Compress a point cloud
Public Method
Static Member
DecompressBase64String
Decompress base64 encoded version of Draco data into either a mesh or point cloud
Public Method
Static Member
DecompressByteArray
Decompress data into either a mesh or point cloud.
Public Method
Static Member
DecompressFile
Read compressed data from disk and decompress to RhinoCommon geometry
Public Method
Dispose
Actively reclaims unmanaged resources that this instance uses.
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
Finalizer for DracoCompression
(Overrides Object.Finalize..)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
ToBase64String
Convert byte array of Draco compressed data into a base64 encoded string
Public Method
ToByteArray
Gets the Draco compressed data as a byte array
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
Write
Write the compressed data to disk