
## DracoFormat class

Google Draco format



**Inheritance:** [`DracoFormat`](/3d/python-net/aspose.threed.formats/dracoformat) → 
[`FileFormat`](/3d/python-net/aspose.threed/fileformat)



The DracoFormat type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [formats](/3d/python-net/aspose.threed.formats/dracoformat/formats) | Access to all supported formats |
| [version](/3d/python-net/aspose.threed.formats/dracoformat/version) | Gets file format version |
| [can_export](/3d/python-net/aspose.threed.formats/dracoformat/can_export) | Gets whether Aspose.3D supports export scene to current file format. |
| [can_import](/3d/python-net/aspose.threed.formats/dracoformat/can_import) | Gets whether Aspose.3D supports import scene from current file format. |
| [extension](/3d/python-net/aspose.threed.formats/dracoformat/extension) | Gets the extension name of this type. |
| [extensions](/3d/python-net/aspose.threed.formats/dracoformat/extensions) | Gets the extension names of this type. |
| [content_type](/3d/python-net/aspose.threed.formats/dracoformat/content_type) | Gets file format content type |
| [file_format_type](/3d/python-net/aspose.threed.formats/dracoformat/file_format_type) | Gets file format type |
| [FBX6100ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx6100ascii) | ASCII FBX file format, with 6.1.0 version |
| [FBX6100_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx6100_binary) | Binary FBX file format, with 6.1.0 version |
| [FBX7200ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx7200ascii) | ASCII FBX file format, with 7.2.0 version |
| [FBX7200_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx7200_binary) | Binary FBX file format, with 7.2.0 version |
| [FBX7300ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx7300ascii) | ASCII FBX file format, with 7.3.0 version |
| [FBX7300_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx7300_binary) | Binary FBX file format, with 7.3.0 version |
| [FBX7400ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx7400ascii) | ASCII FBX file format, with 7.4.0 version |
| [FBX7400_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx7400_binary) | Binary FBX file format, with 7.4.0 version |
| [FBX7500ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx7500ascii) | ASCII FBX file format, with 7.5.0 version |
| [FBX7500_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx7500_binary) | Binary FBX file format, with 7.5.0 version |
| [FBX7600ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx7600ascii) | ASCII FBX file format, with 7.6.0 version |
| [FBX7600_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx7600_binary) | Binary FBX file format, with 7.6.0 version |
| [FBX7700ASCII](/3d/python-net/aspose.threed.formats/dracoformat/fbx7700ascii) | ASCII FBX file format, with 7.7.0 version |
| [FBX7700_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/fbx7700_binary) | Binary FBX file format, with 7.7.0 version |
| [MAYA_ASCII](/3d/python-net/aspose.threed.formats/dracoformat/maya_ascii) | Autodesk Maya in ASCII format |
| [MAYA_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/maya_binary) | Autodesk Maya in Binary format |
| [STL_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/stl_binary) | Binary STL file format |
| [STLASCII](/3d/python-net/aspose.threed.formats/dracoformat/stlascii) | ASCII STL file format |
| [WAVEFRONT_OBJ](/3d/python-net/aspose.threed.formats/dracoformat/wavefront_obj) | Wavefront's Obj file format |
| [DISCREET_3DS](/3d/python-net/aspose.threed.formats/dracoformat/discreet_3ds) | 3D Studio's file format |
| [COLLADA](/3d/python-net/aspose.threed.formats/dracoformat/collada) | Collada file format |
| [UNIVERSAL_3D](/3d/python-net/aspose.threed.formats/dracoformat/universal_3d) | Universal3D file format |
| [GLTF](/3d/python-net/aspose.threed.formats/dracoformat/gltf) | Khronos Group's glTF |
| [GLTF2](/3d/python-net/aspose.threed.formats/dracoformat/gltf2) | Khronos Group's glTF version 2.0 |
| [GLTF_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/gltf_binary) | Khronos Group's glTF in Binary format |
| [GLTF2_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/gltf2_binary) | Khronos Group's glTF version 2.0 |
| [PDF](/3d/python-net/aspose.threed.formats/dracoformat/pdf) | Adobe's Portable Document Format |
| [BLENDER](/3d/python-net/aspose.threed.formats/dracoformat/blender) | Blender's 3D file format |
| [DXF](/3d/python-net/aspose.threed.formats/dracoformat/dxf) | AutoCAD DXF |
| [PLY](/3d/python-net/aspose.threed.formats/dracoformat/ply) | Polygon File Format or Stanford Triangle Format |
| [X_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/x_binary) | DirectX X File in binary format |
| [X_TEXT](/3d/python-net/aspose.threed.formats/dracoformat/x_text) | DirectX X File in binary format |
| [DRACO](/3d/python-net/aspose.threed.formats/dracoformat/draco) | Google Draco Mesh |
| [MICROSOFT_3MF](/3d/python-net/aspose.threed.formats/dracoformat/microsoft_3mf) | Microsoft 3D Manufacturing Format |
| [RVM_TEXT](/3d/python-net/aspose.threed.formats/dracoformat/rvm_text) | AVEVA Plant Design Management System Model in text format |
| [RVM_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/rvm_binary) | AVEVA Plant Design Management System Model in binary format |
| [ASE](/3d/python-net/aspose.threed.formats/dracoformat/ase) | 3D Studio Max's ASCII Scene Exporter format. |
| [IFC](/3d/python-net/aspose.threed.formats/dracoformat/ifc) | ISO 16739-1 Industry Foundation Classes data model. |
| [SIEMENS_JT8](/3d/python-net/aspose.threed.formats/dracoformat/siemens_jt8) | Siemens JT File Version 8 |
| [SIEMENS_JT9](/3d/python-net/aspose.threed.formats/dracoformat/siemens_jt9) | Siemens JT File Version 9 |
| [AMF](/3d/python-net/aspose.threed.formats/dracoformat/amf) | Additive manufacturing file format |
| [VRML](/3d/python-net/aspose.threed.formats/dracoformat/vrml) | The Virtual Reality Modeling Language |
| [ASPOSE_3D_WEB](/3d/python-net/aspose.threed.formats/dracoformat/aspose_3d_web) | Aspose.3D Web format. |
| [HTML5](/3d/python-net/aspose.threed.formats/dracoformat/html5) | HTML5 File |
| [ZIP](/3d/python-net/aspose.threed.formats/dracoformat/zip) | Zip archive that contains other 3d file format. |
| [USD](/3d/python-net/aspose.threed.formats/dracoformat/usd) | Universal Scene Description |
| [USDA](/3d/python-net/aspose.threed.formats/dracoformat/usda) | Universal Scene Description in ASCII format. |
| [USDZ](/3d/python-net/aspose.threed.formats/dracoformat/usdz) | Compressed Universal Scene Description |
| [XYZ](/3d/python-net/aspose.threed.formats/dracoformat/xyz) | Xyz point cloud file |
| [PCD](/3d/python-net/aspose.threed.formats/dracoformat/pcd) | PCL Point Cloud Data file in ASCII mode |
| [PCD_BINARY](/3d/python-net/aspose.threed.formats/dracoformat/pcd_binary) | PCL Point Cloud Data file in Binary mode |


### Methods
| Method | Description |
| :- | :- |
| [`detect(, stream, file_name)`](/3d/python-net/aspose.threed.formats/dracoformat/detect/#io.rawiobase-system.string) | Detect the file format from data stream, file name is optional for guessing types that has no magic header. |
| [`detect(, file_name)`](/3d/python-net/aspose.threed.formats/dracoformat/detect/#system.string) | Detect the file format from file name, file must be readable so Aspose.3D can detect the file format through file header. |
| [`decode(self, file_name)`](/3d/python-net/aspose.threed.formats/dracoformat/decode/#system.string) | Decode the point cloud or mesh from specified file name |
| [`decode(self, data)`](/3d/python-net/aspose.threed.formats/dracoformat/decode/#bytes) | Decode the point cloud or mesh from memory data |
| [`encode(self, entity, stream, options)`](/3d/python-net/aspose.threed.formats/dracoformat/encode/#aspose.threed.entity-io.rawiobase-aspose.threed.formats.dracosaveoptions) | Encode the entity to specified stream |
| [`encode(self, entity, file_name, options)`](/3d/python-net/aspose.threed.formats/dracoformat/encode/#aspose.threed.entity-system.string-aspose.threed.formats.dracosaveoptions) | Encode the entity to specified file |
| [`encode(self, entity, options)`](/3d/python-net/aspose.threed.formats/dracoformat/encode/#aspose.threed.entity-aspose.threed.formats.dracosaveoptions) | Encode the entity to Draco raw data |
| [`get_format_by_extension(, extension_name)`](/3d/python-net/aspose.threed.formats/dracoformat/get_format_by_extension/#system.string) | Gets the preferred file format from the file extension name
<br/>The extension name should starts with a dot('.'). |
| [`create_load_options(self)`](/3d/python-net/aspose.threed.formats/dracoformat/create_load_options/#) | Create a default load options for this file format |
| [`create_save_options(self)`](/3d/python-net/aspose.threed.formats/dracoformat/create_save_options/#) | Create a default save options for this file format |



### Example 


The following code shows how to encode and decode a Mesh to/from byte array:
		
```python
from aspose import pycore
from aspose.threed import FileFormat
from aspose.threed.entities import Mesh, Sphere

mesh = Sphere().to_mesh()
# mesh'i Draco formatına kodla
draco = FileFormat.DRACO.encode(mesh)
# mesh'i Draco formatından çöz
decodedMesh = pycore.cast(Mesh, FileFormat.DRACO.decode(draco))

```

### See Also
* module [`aspose.threed.formats`](..)
* class [`DracoFormat`](/3d/python-net/aspose.threed.formats/dracoformat)
* class [`FileFormat`](/3d/python-net/aspose.threed/fileformat)
