-
Notifications
You must be signed in to change notification settings - Fork 7
/
MeshFix.py
48 lines (37 loc) · 1.26 KB
/
MeshFix.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# MeshFix
# https://github.com/MarcoAttene/MeshFix-V2.1
# MeshFix node plugin for Meshroom [draft]
#
# Pre-compiled binaries for MeshFix can be downloaded from https://github.com/MarcoAttene/MeshFix-V2.1
# MeshFix, created by Marco Attene
# Meshroom plugin by natowi (https://github.com/natowi) 11.2019
# Meshroom plugin license: Mozilla Public License Version 2.0
# Plugin folder: meshroom\nodes\aliceVision
# Requires MeshFix.exe in aliceVision\bin
# Option '-a' = joins multiple open components before starting
# Option '-j' = output files in STL format insted of OFF
# OFF or STL files can be converted using MeshSmith
__version__ = "3.0"
from meshroom.core import desc
class MeshFix(desc.CommandLineNode):
commandLine = 'MeshFix {inputValue} {outputValue} -j'
cpu = desc.Level.NORMAL
ram = desc.Level.NORMAL
inputs = [
desc.File(
name="input",
label='Input Mesh (OBJ file format).',
description='',
value='',
uid=[0],
),
]
outputs = [
desc.File(
name="output",
label="Output mesh",
description="Output mesh (OBJ file format).",
value=desc.Node.internalFolder + 'mesh_fixed.stl',
uid=[],
),
]