Skip to content

Commit 44de306

Browse files
gregoire-dlcbentejac
authored andcommitted
[meshroom] ConvertMesh: Update node parameters/descriptions
This allows `convertMesh` to convert textured or not textured mesh. Mesh can now be converted at any steps of the MVS pipeline (Meshing, MeshFiltering and now Texturing). Add options for texture files copy and flip normals. Update compatible mesh files list.
1 parent e9c58e7 commit 44de306

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed
Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,44 @@
1-
__version__ = "1.0"
1+
__version__ = "2.0"
22

33
from meshroom.core import desc
44
from meshroom.core.utils import VERBOSE_LEVEL
55

66

77
class ConvertMesh(desc.AVCommandLineNode):
88
commandLine = "aliceVision_convertMesh {allParams}"
9-
109
category = "Utils"
11-
documentation = """This node allows to convert a mesh to another format."""
10+
documentation = """Convert a mesh to another mesh format."""
1211

1312
inputs = [
1413
desc.File(
1514
name="inputMesh",
1615
label="Input Mesh",
17-
description="Input mesh (*.obj, *.mesh, *.meshb, *.ply, *.off, *.stl).",
16+
description="Input mesh (*.obj, *.fbx, *.gltf, *.glb, *.stl, *.ply).",
1817
value="",
1918
),
2019
desc.ChoiceParam(
2120
name="outputMeshFileType",
2221
label="Output File Type",
23-
description="Output mesh format (*.obj, *.gltf, *.fbx, *.stl).",
22+
description="Output mesh format (*.obj, *.fbx, *.gltf, *.glb, *.stl, *.ply).",
2423
value="obj",
25-
values=["gltf", "obj", "fbx", "stl"],
24+
values=["obj", "fbx", "gltf", "glb", "stl", "ply"],
2625
group="",
2726
),
27+
desc.BoolParam(
28+
name="flipNormals",
29+
label="Flip Normals",
30+
description="Flip face normals. It can be needed as it depends on the vertices order "
31+
"in triangles and the convention changes from one software to another.",
32+
value=False,
33+
advanced=True,
34+
),
35+
desc.BoolParam(
36+
name="copyTextures",
37+
label="Copy Textures",
38+
description="Copy input mesh texture files to the output mesh folder.",
39+
value=True,
40+
advanced=True,
41+
),
2842
desc.ChoiceParam(
2943
name="verboseLevel",
3044
label="Verbose Level",
@@ -38,7 +52,7 @@ class ConvertMesh(desc.AVCommandLineNode):
3852
desc.File(
3953
name="output",
4054
label="Mesh",
41-
description="Output mesh (*.obj, *.mesh, *.meshb, *.ply, *.off, *.stl).",
55+
description="Output mesh (*.obj, *.fbx, *.gltf, *.glb, *.stl, *.ply).",
4256
value="{nodeCacheFolder}/mesh.{outputMeshFileTypeValue}",
4357
),
4458
]

0 commit comments

Comments
 (0)