Scene scene = new Scene(input.rvm);
GLTFSaveOptions option = new GLTFSaveOptions(FileFormat.GLTF2_Binary);
option.DracoCompression = true;
Mesh mesh = PolygonModifier.MergeMesh(scene);
scene.Save(output.glb, option);
Scene scene = new Scene(input.rvm);
Mesh mesh = PolygonModifier.MergeMesh(scene);
FileFormat.PLY.Encode(mesh, tmp.ply, new PlySaveOptions(FileContentType.ASCII));
scene = new Scene(tmp.ply);
GLTFSaveOptions option = new GLTFSaveOptions(FileFormat.GLTF2);
scene.Save(base.Output, option);
Scene scene = new Scene(“input.rvm”);
GLTFSaveOptions option = new GLTFSaveOptions(FileFormat.GLTF2_Binary);
scene.Save(“output.glb”, option);
Merged
Scene scene = new Scene(“input.rvm”);
Mesh mesh = PolygonModifier.MergeMesh(scene);
FileFormat.PLY.Encode(mesh, “tmp.ply”, new PlySaveOptions(FileContentType.ASCII));
scene = new Scene(“tmp.ply”);
GLTFSaveOptions option = new GLTFSaveOptions(FileFormat.GLTF2_Binary);
scene.Save(“output.glb”, option);
Scene scene = new Scene("input.rvm");
Mesh mesh = PolygonModifier.MergeMesh(scene);
scene = new Scene(mesh);
GLTFSaveOptions option = new GLTFSaveOptions(FileFormat.GLTF2_Binary);
scene.Save("output.glb", option);