PlyFormat.Decode
Contents
[
Hide
]Decode(string)
Decode a point cloud or mesh from the specified stream.
public Geometry Decode(string fileName)
Parameter | Type | Description |
---|---|---|
fileName | String | The input stream |
Return Value
A Mesh
or PointCloud
instance
Examples
The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
See Also
- class Geometry
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Decode(string, PlyLoadOptions)
Decode a point cloud or mesh from the specified stream.
public Geometry Decode(string fileName, PlyLoadOptions opt)
Parameter | Type | Description |
---|---|---|
fileName | String | The input stream |
opt | PlyLoadOptions | The load option of PLY format |
Return Value
A Mesh
or PointCloud
instance
Examples
The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
See Also
- class Geometry
- class PlyLoadOptions
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Decode(Stream)
Decode a point cloud or mesh from the specified stream.
public Geometry Decode(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The input stream |
Return Value
A Mesh
or PointCloud
instance
Examples
The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
See Also
- class Geometry
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Decode(Stream, PlyLoadOptions)
Decode a point cloud or mesh from the specified stream.
public Geometry Decode(Stream stream, PlyLoadOptions opt)
Parameter | Type | Description |
---|---|---|
stream | Stream | The input stream |
opt | PlyLoadOptions | The load option of PLY format |
Return Value
A Mesh
or PointCloud
instance
Examples
The following code shows how to decode a mesh from a PLY file:
//Generate a test file for decoding
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//Decode the file
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
See Also
- class Geometry
- class PlyLoadOptions
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D