Encode

DracoFormat.Encode method (1 of 3)

Encode the entity to specified stream

public void Encode(Entity entity, Stream stream, DracoSaveOptions options = null)
Parameter Type Description
entity Entity The entity to be encoded
stream Stream The stream that encoded data will be written to
options DracoSaveOptions Extra options for encoding the point cloud

See Also


DracoFormat.Encode method (2 of 3)

Encode the entity to specified file

public void Encode(Entity entity, string fileName, DracoSaveOptions options = null)
Parameter Type Description
entity Entity The entity to be encoded
fileName String The file name to be written
options DracoSaveOptions Extra options for encoding the point cloud

See Also


DracoFormat.Encode method (3 of 3)

Encode the entity to Draco raw data

public byte[] Encode(Entity entity, DracoSaveOptions options = null)
Parameter Type Description
entity Entity The entity to be encoded
options DracoSaveOptions Extra options for encoding the point cloud

Return Value

The encoded draco data represented in bytes

See Also