From bebf43921714adc59ac0de2cb54bf56092564b03 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Mon, 16 Jun 2025 20:02:42 +0200 Subject: [PATCH 1/2] [meshroom] Add semantic 3d for meshes --- meshroom/aliceVision/LidarMerging.py | 1 + meshroom/aliceVision/MergeMeshes.py | 1 + meshroom/aliceVision/MeshDecimate.py | 1 + meshroom/aliceVision/MeshDenoising.py | 1 + meshroom/aliceVision/MeshFiltering.py | 1 + meshroom/aliceVision/MeshMasking.py | 3 ++- meshroom/aliceVision/MeshRemoveUnseenFaces.py | 1 + meshroom/aliceVision/MeshResampling.py | 1 + meshroom/aliceVision/Meshing.py | 1 + 9 files changed, 10 insertions(+), 1 deletion(-) diff --git a/meshroom/aliceVision/LidarMerging.py b/meshroom/aliceVision/LidarMerging.py index e107d7c4a0..0247caddd7 100644 --- a/meshroom/aliceVision/LidarMerging.py +++ b/meshroom/aliceVision/LidarMerging.py @@ -36,5 +36,6 @@ class LidarMerging(desc.AVCommandLineNode): label="Mesh Path Output", description="Output directory for mesh.", value="{nodeCacheFolder}/output.obj", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/MergeMeshes.py b/meshroom/aliceVision/MergeMeshes.py index 311e7f1b48..084ec3077b 100644 --- a/meshroom/aliceVision/MergeMeshes.py +++ b/meshroom/aliceVision/MergeMeshes.py @@ -65,5 +65,6 @@ class MergeMeshes(desc.AVCommandLineNode): label="Mesh", description="Output mesh (*.obj, *.mesh, *.meshb, *.ply, *.off, *.stl).", value="{nodeCacheFolder}/mesh.stl", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/MeshDecimate.py b/meshroom/aliceVision/MeshDecimate.py index a6b092609b..c30ba2d931 100644 --- a/meshroom/aliceVision/MeshDecimate.py +++ b/meshroom/aliceVision/MeshDecimate.py @@ -73,5 +73,6 @@ class MeshDecimate(desc.AVCommandLineNode): label="Mesh", description="Output mesh in the OBJ file format.", value="{nodeCacheFolder}/mesh.obj", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/MeshDenoising.py b/meshroom/aliceVision/MeshDenoising.py index a7329e45b6..740238ef76 100644 --- a/meshroom/aliceVision/MeshDenoising.py +++ b/meshroom/aliceVision/MeshDenoising.py @@ -88,5 +88,6 @@ class MeshDenoising(desc.AVCommandLineNode): label="Output", description="Output mesh in the OBJ file format.", value="{nodeCacheFolder}/mesh.obj", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/MeshFiltering.py b/meshroom/aliceVision/MeshFiltering.py index 6eb91d1052..4d81f2cb31 100644 --- a/meshroom/aliceVision/MeshFiltering.py +++ b/meshroom/aliceVision/MeshFiltering.py @@ -113,5 +113,6 @@ class MeshFiltering(desc.AVCommandLineNode): label="Mesh", description="Output mesh file.", value="{nodeCacheFolder}/mesh.{outputMeshFileTypeValue}", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/MeshMasking.py b/meshroom/aliceVision/MeshMasking.py index 45fa5f329b..984923c644 100644 --- a/meshroom/aliceVision/MeshMasking.py +++ b/meshroom/aliceVision/MeshMasking.py @@ -99,5 +99,6 @@ class MeshMasking(desc.AVCommandLineNode): label="Mesh", description="Output mesh file.", value="{nodeCacheFolder}/mesh.{outputMeshFileTypeValue}", - ), + semantic="3d", + ), ] diff --git a/meshroom/aliceVision/MeshRemoveUnseenFaces.py b/meshroom/aliceVision/MeshRemoveUnseenFaces.py index c82e3094bf..615f59a9b8 100644 --- a/meshroom/aliceVision/MeshRemoveUnseenFaces.py +++ b/meshroom/aliceVision/MeshRemoveUnseenFaces.py @@ -65,5 +65,6 @@ class MeshRemoveUnseenFaces(desc.AVCommandLineNode): label="Mesh", description="Output mesh file.", value="{nodeCacheFolder}/mesh.{outputMeshFileTypeValue}", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/MeshResampling.py b/meshroom/aliceVision/MeshResampling.py index d96373adfe..034da444ed 100644 --- a/meshroom/aliceVision/MeshResampling.py +++ b/meshroom/aliceVision/MeshResampling.py @@ -78,5 +78,6 @@ class MeshResampling(desc.AVCommandLineNode): label="Mesh", description="Output mesh in the OBJ file format.", value="{nodeCacheFolder}/mesh.obj", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/Meshing.py b/meshroom/aliceVision/Meshing.py index b01fe33e85..e76501bbc2 100644 --- a/meshroom/aliceVision/Meshing.py +++ b/meshroom/aliceVision/Meshing.py @@ -473,6 +473,7 @@ class Meshing(desc.AVCommandLineNode): label="Mesh", description="Output mesh.", value="{nodeCacheFolder}/mesh.{outputMeshFileTypeValue}", + semantic="3d", ), desc.File( name="output", From e3a701debc5ea60712a74be9393cbe8e8b7c9777 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Mon, 16 Jun 2025 20:03:07 +0200 Subject: [PATCH 2/2] [meshroom] Add semantic 3d for sfmData --- meshroom/aliceVision/ImportAlembic.py | 1 + meshroom/aliceVision/ImportKnownPoses.py | 1 + meshroom/aliceVision/Meshing.py | 1 + 3 files changed, 3 insertions(+) diff --git a/meshroom/aliceVision/ImportAlembic.py b/meshroom/aliceVision/ImportAlembic.py index 54a70b0b38..6726335387 100644 --- a/meshroom/aliceVision/ImportAlembic.py +++ b/meshroom/aliceVision/ImportAlembic.py @@ -47,5 +47,6 @@ class ImportAlembic(desc.AVCommandLineNode): label="SfMData", description="SfMData file populated with the camera poses from the external Alembic file.", value="{nodeCacheFolder}/importedAbc.sfm", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/ImportKnownPoses.py b/meshroom/aliceVision/ImportKnownPoses.py index 0a7e5e9866..2148e3de83 100644 --- a/meshroom/aliceVision/ImportKnownPoses.py +++ b/meshroom/aliceVision/ImportKnownPoses.py @@ -40,5 +40,6 @@ class ImportKnownPoses(desc.AVCommandLineNode): label="Output", description="Path to the output SfMData file.", value="{nodeCacheFolder}/sfmData.abc", + semantic="3d", ), ] diff --git a/meshroom/aliceVision/Meshing.py b/meshroom/aliceVision/Meshing.py index e76501bbc2..631abf7cfa 100644 --- a/meshroom/aliceVision/Meshing.py +++ b/meshroom/aliceVision/Meshing.py @@ -480,5 +480,6 @@ class Meshing(desc.AVCommandLineNode): label="Dense SfMData", description="Output dense point cloud with visibilities (SfMData file format).", value="{nodeCacheFolder}/densePointCloud.abc", + semantic="3d", ), ]