mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 00:08:29 +02:00
[core] change Attributes declaration on Node description
Inputs and outputs Attributes are now declared in two separate lists * no more isOutput field on Attribute description * guarantee attributes order (was not the case in Python2 with class attributes) * Attribute's name is now part of its description Note: for now, input and output Attributes are still stored in a single model inside a Graph.
This commit is contained in:
parent
00366cda00
commit
16e8037fd7
18 changed files with 506 additions and 405 deletions
|
@ -1,61 +1,66 @@
|
|||
from meshroom.core import desc
|
||||
|
||||
|
||||
class Texturing(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'aliceVision_texturing --ini {mvsConfigValue} {allParams}'
|
||||
commandLine = 'aliceVision_texturing {allParams}'
|
||||
cpu = desc.Level.INTENSIVE
|
||||
ram = desc.Level.INTENSIVE
|
||||
|
||||
mvsConfig = desc.File(
|
||||
inputs = [
|
||||
desc.File(
|
||||
name='ini',
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
group='',
|
||||
)
|
||||
|
||||
output = desc.File(
|
||||
label='Output Folder',
|
||||
description='Folder for output mesh: OBJ, material and texture files.',
|
||||
value='{cache}/{nodeType}/{uid0}/',
|
||||
uid=[0],
|
||||
isOutput=True,
|
||||
)
|
||||
|
||||
inputMesh = desc.File(
|
||||
),
|
||||
desc.File(
|
||||
name='inputMesh',
|
||||
label='Other Input Mesh',
|
||||
description='Optional input mesh to texture. By default, it will texture the result of the reconstruction.',
|
||||
value='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
||||
|
||||
textureSide = desc.IntParam(
|
||||
),
|
||||
desc.IntParam(
|
||||
name='textureSide',
|
||||
label='Texture Side',
|
||||
description='''Output texture size''',
|
||||
value=8192,
|
||||
range=(1024, 16384, 1024),
|
||||
uid=[0],
|
||||
)
|
||||
padding = desc.IntParam(
|
||||
),
|
||||
desc.IntParam(
|
||||
name='padding',
|
||||
label='Padding',
|
||||
description='''Texture edge padding size in pixel''',
|
||||
value=15,
|
||||
range=(0, 100, 1),
|
||||
uid=[0],
|
||||
)
|
||||
downscale = desc.IntParam(
|
||||
),
|
||||
desc.IntParam(
|
||||
name='downscale',
|
||||
label='Downscale',
|
||||
description='''Texture downscale factor''',
|
||||
value=2,
|
||||
range=(0, 16, 1),
|
||||
uid=[0],
|
||||
)
|
||||
flipNormals = desc.BoolParam(
|
||||
),
|
||||
desc.BoolParam(
|
||||
name='flipNormals',
|
||||
label='Flip Normals',
|
||||
description='''Option to flip face normals. It can be needed as it depends on the vertices order in triangles and the convention change from one software to another.''',
|
||||
value=False,
|
||||
uid=[0],
|
||||
)
|
||||
)
|
||||
]
|
||||
|
||||
outputs = [
|
||||
desc.File(
|
||||
name='output',
|
||||
label='Output Folder',
|
||||
description='Folder for output mesh: OBJ, material and texture files.',
|
||||
value='{cache}/{nodeType}/{uid0}/',
|
||||
uid=[0],
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue