AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Repair ​

Merge vertices, fix normals and fill holes in imported meshes.

Repair: Start: a scan with stray fragments compared with Result: one clean, closed body.
Prism help example. Merge duplicate vertices, remove junk triangles, fix flipped normals and fill holes. Run Repair before Print Check or any slicing step; open or inverted meshes are the usual cause of failed prints. View full size

In the app

Repair the entire mesh or the region chosen with Edit Region. Green rims show holes that will close. Selected-region repair preserves outside geometry and fills only completely selected rims.

How to use ​

  1. Choose Repair. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Meshes (mesh, one or more).
  3. Adjust the settings and check the preview in the viewport.
  4. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Repair scopeEntire meshEntire mesh, Selected region
Merge duplicate verticesOn
Merge distance0.001 mm0 to 10 mm
Remove degenerate and duplicate trianglesOn
Remove tiny floating shellsOff
Shells smaller than (triangles)100Whole number, 1 to 1000000
Fix flipped and inconsistent normalsOn
Fill holesOn
Largest hole to fill (edges)100Whole number, 3 to 100000

Script it ​

Command name mesh_repair. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("mesh_repair", slots={"Meshes": [...]}, repair_scope="Entire mesh", merge_duplicate_vertices=True)