betti fix repair

Orient parts outward, fill holes and remove self-intersections.

fix module Granted on request: see access and licensing.

Usage

betti fix repair [flags] in out

Examples

betti fix repair scan.stl fixed.3mf
betti fix repair -small-parts 0.001 part.stl fixed.obj

Flags

FlagTakesDefaultMeaning
-keep-holesswitchoffdo not fill the holes of solids
-kindtextautowhat the parts are: auto (as betti info classifies each), solid (holes are filled, crossings resolved by union) or sheet (crossings cut, edges kept open)
-parityswitchoffdecide by the parity of the faces rays cross, which takes every part for the boundary of one solid: cavities face into themselves, but bodies inside bodies become cavities
-small-partsnumbernoneremove parts with less than this fraction of the total area, such as 0.001

Output flags

FlagTakesDefaultMeaning
-jsonswitchoffprint the result as JSON
-qswitchoffprint nothing but errors
-vswitchoffalso show the stages of each step, and their times

This page is generated from betti help fix repair. Lengths are absolute, or a percentage of the part's bounding-box diagonal, as in -size 1%.