[nodes] M-P: Harmonize and improve labels and descriptions

Use CamelCase for all labels, always end descriptions with periods, and
replace the mixed use of single and double quotes with double quotes
only.
This commit is contained in:
Candice Bentéjac 2023-06-16 10:31:42 +02:00
parent 3146dcface
commit 41280dc22a
19 changed files with 920 additions and 906 deletions

View file

@ -16,75 +16,76 @@ This node allows to recompute the mesh surface with a new topology and uniform d
inputs = [
desc.File(
name="input",
label='Input Mesh (OBJ file format).',
description='',
value='',
label="Input Mesh",
description="Input mesh in the OBJ file format.",
value="",
uid=[0],
),
desc.FloatParam(
name='simplificationFactor',
label='Simplification factor',
description='Simplification factor',
name="simplificationFactor",
label="Simplification Factor",
description="Simplification factor for the resampling.",
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.',
name="nbVertices",
label="Fixed Number Of Vertices",
description="Fixed number of output vertices.",
value=0,
range=(0, 1000000, 1),
uid=[0],
),
desc.IntParam(
name='minVertices',
name="minVertices",
label='Min Vertices',
description='Min number of output vertices.',
description="Minimum number of output vertices.",
value=0,
range=(0, 1000000, 1),
uid=[0],
),
desc.IntParam(
name='maxVertices',
label='Max Vertices',
description='Max number of output vertices.',
name="maxVertices",
label="Max Vertices",
description="Maximum number of output vertices.",
value=0,
range=(0, 1000000, 1),
uid=[0],
),
desc.IntParam(
name='nbLloydIter',
label='Number of Pre-Smoothing Iteration',
description='Number of iterations for Lloyd pre-smoothing.',
name="nbLloydIter",
label="Number Of Pre-Smoothing Iteration",
description="Number of iterations for Lloyd pre-smoothing.",
value=40,
range=(0, 100, 1),
uid=[0],
),
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.''',
name="flipNormals",
label="Flip Normals",
description="Option to flip face normals.\n"
"It can be needed as it depends on the vertices order in triangles and the convention changes from one software to another.",
value=False,
uid=[0],
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
description='''verbosity level (fatal, error, warning, info, debug, trace).''',
value='info',
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
value="info",
values=["fatal", "error", "warning", "info", "debug", "trace"],
exclusive=True,
uid=[],
),
)
]
outputs = [
desc.File(
name="output",
label="Mesh",
description="Output mesh (OBJ file format).",
value=desc.Node.internalFolder + 'mesh.obj',
description="Output mesh in the OBJ file format.",
value=desc.Node.internalFolder + "mesh.obj",
uid=[],
),
),
]