encode method

encode

Encode the entity to Draco raw data

Returns

The encoded draco data represented in bytes

def encode(self, entity, options):
    ...
ParameterTypeDescription
entityEntityThe entity to be encoded
optionsDracoSaveOptionsExtra options for encoding the point cloud

encode

Encode the entity to specified stream

def encode(self, entity, stream, options):
    ...
ParameterTypeDescription
entityEntityThe entity to be encoded
streamio.RawIOBaseThe stream that encoded data will be written to
optionsDracoSaveOptionsExtra options for encoding the point cloud

encode

Encode the entity to specified file

def encode(self, entity, file_name, options):
    ...
ParameterTypeDescription
entityEntityThe entity to be encoded
file_namestrThe file name to be written
optionsDracoSaveOptionsExtra options for encoding the point cloud

See Also