Loud orking ile loud ointloud loud
Decode Mesh
Aspose.3D for Java allows decoding a mesh from a Draco file directly without building a scene using the decode
method of DracoFormat
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
PointCloud pointCloud = (PointCloud) FileFormat.DRACO.decode(RunExamples.getDataDir() + "point_cloud_no_qp.drc"); |
Encode Mesh
Aspose.3D for Java allows encoding a sphere mesh to a Draco file directly without building a scene using the encode
method of DracoFormat
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
FileFormat.DRACO.encode(new Sphere(), RunExamples.getDataDir() + "sphere.drc"); |
Encode loud phere as loud ointloud loud
Aspose.3D for Java allows encoding a sphere mesh to Draco file as a point cloud using the encode
method of DracoFormat
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
DracoSaveOptions opt = new DracoSaveOptions(); | |
opt.setPointCloud(true); | |
FileFormat.DRACO.encode(new Sphere(), RunExamples.getDataDir()+"sphere.drc", opt); |
Örgüyü PLY olarak kodlayın
Aspose.3D for Java allows encoding a mesh to PLY file directly without building a scene using the encode
method of PlyFormat
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
FileFormat.PLY.encode(new Sphere(), RunExamples.getDataDir() + "sphere.ply"); |
Ağını PLY ‘dan çöz
Aspose.3D for Java allows decoding a mesh/point cloud from a PLY file using the decode
method of PlyFormat
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
FileFormat.PLY.encode(new Sphere(), RunExamples.getDataDir() + "sphere.ply"); |
Export to PLY as PointCloud
Aspose.3D for Java allows exporting a scene to PLY as PointCloud using the encode
method of PlyFormat
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
PlySaveOptions opt = new PlySaveOptions(); | |
opt.setPointCloud(true); | |
FileFormat.PLY.encode(new Sphere(),RunExamples.getDataDir() + "sphere.ply", opt); |
Export 3D Scene as Point Cloud
Aspose.3D for Java allows exporting a 3D scene as PointCloud using setPointCloud
method of ObjSaveOptions
class. The following code snippet shows how to use this functionality:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
// Initialize Scene | |
Scene scene = new Scene(new Sphere()); | |
// Initialize ObjSaveOptions | |
ObjSaveOptions opt = new ObjSaveOptions(); | |
// To export 3D scene as point cloud setPointCould | |
opt.setPointCloud(true); | |
// Save | |
scene.save(RunExamples.getDataDir()+ "export3DSceneAsPointCloud.obj", opt); |