Working مع oointCبصوت عال
Dإيكودي إيش
Aspose.3D for Java يسمح بفك تشفير شبكة من ملف Draco مباشرةً دون إنشاء مشهد باستخدام طريقة decode لفئة DracoFormat. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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 esh sh
Aspose.3D for Java يسمح بتشفير شبكة كروية إلى ملف Draco مباشرةً دون إنشاء مشهد باستخدام طريقة encode لفئة DracoFormat. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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 Sphere كما PointCبصوت عال
Aspose.3D for Java يسمح بتشفير شبكة كروية إلى ملف Draco كسحابة نقطة باستخدام طريقة encode لفئة DracoFormat. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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);ترميز شبكة إلى PLY
Aspose.3D for Java يسمح بتشفير شبكة إلى ملف PLY مباشرةً دون إنشاء مشهد باستخدام طريقة encode لفئة PlyFormat. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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");شبكة فك شفرة من PLY
Aspose.3D for Java يسمح بفك تشفير سحابة شبكية/نقاط من ملف PLY باستخدام طريقة decode لفئة PlyFormat. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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");تصدير إلى PLY مثل pottcloud
Aspose.3D for Java يسمح بتصدير مشهد إلى PLY مثل potcloud باستخدام طريقة encode لفئة PlyFormat. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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);تصدير مشهد 3D كسحابة نقطة
Aspose.3D for Java يسمح بتصدير مشهد 3D مثل potcloud باستخدام طريقة setPointCloud لفئة ObjSaveOptions. يوضح مقتطف الكود التالي كيفية استخدام هذه الوظيفة:
// 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);