Closed
Description
Summary
Hi,
While using the MeshFix interface, I received this error:
RuntimeError: Command:
meshfix /path/to/file.off -a 2.000000 0.200000 --fineTuneIn 4 --shells 2 -o file_fixed.off -q
Standard output:
Fixing asin tolerance to 3.491368e-02
Standard error:
ERROR- number of substeps must be > 0.
Return code: 255
Actual behavior
As shown previously, the interface generated command leading to this error is:
meshfix /path/to/file.off -a 2.000000 0.200000 --fineTuneIn 4 --shells 2 -o file_fixed.off -q
And the error is pretty clear, the --fineTuneIn
argument requires a distance and a substeps number. Those two parameters are actualy given in the code:
finetune_wm = pe.Node(interface=mf.MeshFix(), name='finetune_wm')
finetune_wm.inputs.quiet_mode = True
finetune_wm.inputs.epsilon_angle = 2
finetune_wm.inputs.number_of_biggest_shells = 2
finetune_wm.inputs.finetuning_substeps = 4 # Set the substeps number
finetune_wm.inputs.finetuning_distance = 0.2 # Set the distance
finetune_wm.inputs.finetuning_inwards = True # Set --fineTuneIn
And these parameters are also in the command but in a wrong order:
0.200000 --fineTuneIn 4
Expected behavior
The correct order should be:
--fineTuneIn 0.200000 4
As writen in the doc:
--fineTuneIn <d> <n> Used to fine-tune the minimal distance between surfaces
A minimal distance d is ensured, and reached in n substeps
And then the command should be:
meshfix /path/to/file.off -a 2.000000 --fineTuneIn 0.200000 4 --shells 2 -o file_fixed.off -q
Metadata
Metadata
Assignees
Labels
No labels