mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-30 23:08:25 +02:00
[nodes] add meshResampling node
This commit is contained in:
parent
c57d7ed37e
commit
d5714a4e18
1 changed files with 68 additions and 0 deletions
68
meshroom/nodes/aliceVision/MeshResampling.py
Normal file
68
meshroom/nodes/aliceVision/MeshResampling.py
Normal file
|
@ -0,0 +1,68 @@
|
|||
from meshroom.core import desc
|
||||
|
||||
class MeshResampling(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'aliceVision_meshing {allParams}'
|
||||
|
||||
cpu = desc.Level.NORMAL
|
||||
ram = desc.Level.NORMAL
|
||||
|
||||
inputs = [
|
||||
desc.File(
|
||||
name="intput",
|
||||
label='Input Mesh (OBJ file format).',
|
||||
description='',
|
||||
value='',
|
||||
uid=[0],
|
||||
),
|
||||
desc.FloatParam(
|
||||
name='simplificationFactor',
|
||||
label='Simplification factor',
|
||||
description='Simplification factor',
|
||||
value=0.5,
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
desc.IntParam(
|
||||
name='nbVertices',
|
||||
label='Fixed Number of Vertices',
|
||||
description='Fixed number of output vertices.',
|
||||
value=0.0,
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
desc.IntParam(
|
||||
name='minVertices',
|
||||
label='Min Vertices',
|
||||
description='Min number of output vertices.',
|
||||
value=0.0,
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
desc.IntParam(
|
||||
name='maxVertices',
|
||||
label='Max Vertices',
|
||||
description='Max number of output vertices.',
|
||||
value=0.0,
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
desc.IntParam(
|
||||
name='nbLloydIter',
|
||||
label='Number of Pre-Smoothing Iteration',
|
||||
description='Number of iterations for Lloyd pre-smoothing.',
|
||||
value=40,
|
||||
range=(0, 100, 1),
|
||||
uid=[0],
|
||||
),
|
||||
]
|
||||
|
||||
outputs = [
|
||||
desc.File(
|
||||
name="output",
|
||||
label="Output mesh",
|
||||
description="Output mesh (OBJ file format).",
|
||||
value='{cache}/{nodeType}/{uid0}/mesh.obj',
|
||||
uid=[],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue