PlyFormat.Encode
Contents
[
Hide
]Encode(Entity, Stream)
Encode the entity and save the result into the stream.
public void Encode(Entity entity, Stream stream)
Parameter | Type | Description |
---|---|---|
entity | Entity | The entity to encode |
stream | Stream | The stream to write to, this method will not close this stream |
Examples
The following code shows how to encode a mesh into PLY file:
Mesh mesh = (new Sphere()).ToMesh();
//encode mesh into PLY format
FileFormat.PLY.Encode(mesh, "sphere.ply");
See Also
- class Entity
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Encode(Entity, Stream, PlySaveOptions)
Encode the entity and save the result into the stream.
public void Encode(Entity entity, Stream stream, PlySaveOptions opt)
Parameter | Type | Description |
---|---|---|
entity | Entity | The entity to encode |
stream | Stream | The stream to write to, this method will not close this stream |
opt | PlySaveOptions | Save options |
Examples
The following code shows how to encode a mesh into PLY file:
Mesh mesh = (new Sphere()).ToMesh();
//encode mesh into PLY format
FileFormat.PLY.Encode(mesh, "sphere.ply");
See Also
- class Entity
- class PlySaveOptions
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Encode(Entity, string)
Encode the entity and save the result into an external file.
public void Encode(Entity entity, string fileName)
Parameter | Type | Description |
---|---|---|
entity | Entity | The entity to encode |
fileName | String | The file to write to |
Examples
The following code shows how to encode a mesh into PLY file:
Mesh mesh = (new Sphere()).ToMesh();
//encode mesh into PLY format
FileFormat.PLY.Encode(mesh, "sphere.ply");
See Also
- class Entity
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Encode(Entity, string, PlySaveOptions)
Encode the entity and save the result into an external file.
public void Encode(Entity entity, string fileName, PlySaveOptions opt)
Parameter | Type | Description |
---|---|---|
entity | Entity | The entity to encode |
fileName | String | The file to write to |
opt | PlySaveOptions | Save options |
Examples
The following code shows how to encode a mesh into PLY file:
Mesh mesh = (new Sphere()).ToMesh();
//encode mesh into PLY format
FileFormat.PLY.Encode(mesh, "sphere.ply");
See Also
- class Entity
- class PlySaveOptions
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D