encode method
Contents
[
Hide
]encode
Encode the entity to Draco raw data
Returns
The encoded draco data represented in bytes
def encode(self, entity, options):
...
| Parameter | Type | Description |
|---|---|---|
| entity | Entity | The entity to be encoded |
| options | DracoSaveOptions | Extra options for encoding the point cloud |
encode
Encode the entity to specified stream
def encode(self, entity, stream, options):
...
| Parameter | Type | Description |
|---|---|---|
| entity | Entity | The entity to be encoded |
| stream | io.RawIOBase | The stream that encoded data will be written to |
| options | DracoSaveOptions | Extra options for encoding the point cloud |
encode
Encode the entity to specified file
def encode(self, entity, file_name, options):
...
| Parameter | Type | Description |
|---|---|---|
| entity | Entity | The entity to be encoded |
| file_name | str | The file name to be written |
| options | DracoSaveOptions | Extra options for encoding the point cloud |
See Also
- module
aspose.threed.formats - class
DracoFormat