PlyFormat.Decode
内容
[
隐藏
]Decode(string)
从指定的流中解码点云或网格。
public Geometry Decode(string fileName)
| 参数 | 类型 | 描述 |
|---|---|---|
| fileName | 字符串 | 输入流 |
返回值
一个 Mesh 或 PointCloud 实例
示例
以下代码展示了如何从 PLY 文件解码网格:
//生成用于解码的测试文件
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//解码文件
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
另请参见
- class Geometry
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Decode(string, PlyLoadOptions)
从指定的流中解码点云或网格。
public Geometry Decode(string fileName, PlyLoadOptions opt)
| 参数 | 类型 | 描述 |
|---|---|---|
| fileName | 字符串 | 输入流 |
| opt | PlyLoadOptions | PLY 格式的加载选项 |
返回值
一个 Mesh 或 PointCloud 实例
示例
以下代码展示了如何从 PLY 文件解码网格:
//生成用于解码的测试文件
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//解码文件
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
另请参见
- class Geometry
- class PlyLoadOptions
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Decode(Stream)
从指定的流中解码点云或网格。
public Geometry Decode(Stream stream)
| 参数 | 类型 | 描述 |
|---|---|---|
| stream | Stream | 输入流 |
返回值
一个 Mesh 或 PointCloud 实例
示例
以下代码展示了如何从 PLY 文件解码网格:
//生成用于解码的测试文件
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//解码文件
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
另请参见
- class Geometry
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D
Decode(Stream, PlyLoadOptions)
从指定的流中解码点云或网格。
public Geometry Decode(Stream stream, PlyLoadOptions opt)
| 参数 | 类型 | 描述 |
|---|---|---|
| stream | Stream | 输入流 |
| opt | PlyLoadOptions | PLY 格式的加载选项 |
返回值
一个 Mesh 或 PointCloud 实例
示例
以下代码展示了如何从 PLY 文件解码网格:
//生成用于解码的测试文件
FileFormat.PLY.Encode(new Sphere(), "sphere.ply");
//解码文件
var mesh = (Mesh)FileFormat.PLY.Decode("sphere.ply")
另请参见
- class Geometry
- class PlyLoadOptions
- class PlyFormat
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D