
## PlyFormat class

The PLY format.



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


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

### Example 


The following code shows how to encode a mesh into PLY file:
		
```python
from aspose.threed import FileFormat
from aspose.threed.entities import Sphere

mesh = Sphere().to_mesh()
# encode mesh into PLY format
FileFormat.PLY.encode(mesh, "sphere.ply")

```

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