Encode

DracoFormat.Encode method (1 of 3)

Encode the entity to specified stream

public void Encode(Entity entity, Stream stream, DracoSaveOptions options = null)
ParameterTypeDescription
entityEntityThe entity to be encoded
streamStreamThe stream that encoded data will be written to
optionsDracoSaveOptionsExtra 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)
ParameterTypeDescription
entityEntityThe entity to be encoded
fileNameStringThe file name to be written
optionsDracoSaveOptionsExtra 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)
ParameterTypeDescription
entityEntityThe entity to be encoded
optionsDracoSaveOptionsExtra options for encoding the point cloud

Return Value

The encoded draco data represented in bytes

See Also