ArchBridge CAD Mesh Cleaner (Flagship
ArchBridge CAD Mesh Cleaner fixes the five most common geometry defects in architectural .obj, .dxf, .fbx, and SketchUp/Revit/Rhino/AutoCAD imports — deterministically, with clean single-step Blender Undo and zero leaked bmesh handles.
- Extension ID (Pro):
archbridge_cad_mesh_cleaner - Extension ID (Lite):
archbridge_cad_mesh_cleaner_lite - N-Panel Location:
3D Viewport→ Sidebar (N) →ArchBridge - License: GNU GPLv3 (
SPDX:GPL-3.0-or-later) - Compatibility: Blender 4.2 LTS, 4.5 LTS, and 5.x
Live Mesh Diagnostics Header
Section titled “Live Mesh Diagnostics Header”Whenever a mesh object is active, the ArchBridge N-panel displays a lightweight header showing:
- Vertex, polygon, and triangle counts
- Non-manifold edge count (wire edges, boundary edges, multi-face T-junctions)
- Unapplied non-unit scale warning (
obj.scale != (1, 1, 1)) - Last-run before/after cleanup metrics summary
Operator Reference
Section titled “Operator Reference”Every scene- or mesh-mutating operator declares bl_options = {'REGISTER', 'UNDO'} and executes inside a strict bmesh context manager (try ... finally: bm.free()) so zero memory leaks occur even if an operation cancels or raises an exception.
1. Coplanar Face Dissolution (archbridge_cad.dissolve_coplanar)
Section titled “1. Coplanar Face Dissolution (archbridge_cad.dissolve_coplanar)”Merges dense triangulated CAD grids on flat walls, ceilings, slabs, and curtain-wall mullions back into clean architectural n-gons/quads without distorting curved profiles.
- Edition: Lite & Pro
- Key Parameters:
- Angle Tolerance (deg): Maximum face normal angle to dissolve (default
1.0°) - Preserve Boundaries: Keeps outer architectural shell silhouettes intact
- Delimit Flags: Optionally preserve
UV,Material,Sharp, andSeamboundaries
- Angle Tolerance (deg): Maximum face normal angle to dissolve (default
- Behavior: Uses deterministic
bmesh.ops.dissolve_limitordering and reports exact before/after polygon and triangle counts.
2. Flipped-Normals Auto-Repair (archbridge_cad.repair_normals)
Section titled “2. Flipped-Normals Auto-Repair (archbridge_cad.repair_normals)”Eliminates inside-out architectural walls, columns, slabs, and window frames that cause dark backface shading or missing faces in Unreal, Unity, and Godot.
- Edition: Lite & Pro
- Behavior: Recalculates consistent face winding (
bmesh.ops.recalc_face_normals), applies a signed-volume check on closed architectural shells to guarantee strictly outward normals, handles open interior/exterior walls cleanly, and reports the exact number of flipped faces repaired.
3. Non-Manifold Edge Highlighter (archbridge_cad.highlight_non_manifold)
Section titled “3. Non-Manifold Edge Highlighter (archbridge_cad.highlight_non_manifold)”Inspects imported CAD meshes via bmesh and pinpoints geometry defects that break booleans, bevels, and 3D/engine exports.
- Edition: Lite & Pro
- Detected Defects:
- Stray wire edges (
0linked faces) - Open boundary edges (
1linked face) - Multi-face non-manifold T-junctions / internal fins (
> 2linked faces) - Loose vertices & zero-area degenerate sliver faces
- Stray wire edges (
- Behavior: Records defect metrics on scene properties and selects offending edges/vertices on mesh data safely in Object Mode, Edit Mode, and
--backgroundheadless runs.
4. Non-Manifold Auto-Fixer (archbridge_cad.fix_non_manifold)
Section titled “4. Non-Manifold Auto-Fixer (archbridge_cad.fix_non_manifold)”Automatically repairs non-manifold CAD topology in a single undoable step.
- Edition: Pro only (cleanly stripped from the Lite
.zip) - Key Parameters (
scene.archbridge_cad):- Remove Loose Geometry (
remove_loose): Deletes stray wire edges and loose vertices - Dissolve Degenerates (
dissolve_degenerate,degenerate_dist): Dissolves zero-length edges and zero-area sliver faces (default0.0001 m) - Remove Duplicate Faces (
remove_duplicate_faces): Removes exact overlapping duplicate faces - Remove Interior Fins (
remove_interior_fins): Removes internal partition septa and hanging non-manifold fin faces - Cap Small Holes (
fill_holes,max_hole_sides): Optional hole capping viabmesh.ops.holes_fillup tomax_hole_sides(default8,0= unlimited) so intended doorways and windows stay open
- Remove Loose Geometry (
- Behavior: Executes all enabled repair passes deterministically inside a single undoable
bmeshtransaction.
5. Duplicate-Vertex Weld (archbridge_cad.weld_vertices)
Section titled “5. Duplicate-Vertex Weld (archbridge_cad.weld_vertices)”Welds coincident or micro-gapped vertices left behind by CAD triangulation exports.
- Edition: Lite & Pro
- Key Parameters:
- Merge Threshold (m): Distance tolerance in meters (default
0.0005 m=0.5 mm)
- Merge Threshold (m): Distance tolerance in meters (default
- Behavior: Runs deterministic
bmesh.ops.remove_doublesand reports the exact vertex count welded.
6. Architectural Unit Normalizer (archbridge_cad.normalize_units)
Section titled “6. Architectural Unit Normalizer (archbridge_cad.normalize_units)”Fixes imported scale mismatches (for example, millimeters imported as meters at 1000x scale, or SketchUp inches imported as meters) and bakes scale directly into mesh geometry so transforms are clean.
- Edition: Lite & Pro
- Source CAD Units:
MM,CM,INCHES,FEET,METERS - Target Scene Units:
METERSorFEET - Behavior: Transforms mesh vertex coordinates directly (
obj.scalenormalized cleanly to(1.0, 1.0, 1.0)), updatesscene.unit_settings(system,length_unit,scale_length), and guards shared mesh data-blocks so instanced doors/windows/columns are never double-scaled.
7. Pro Batch Pipeline & ArchViz Presets (archbridge_cad.run_pipeline)
Section titled “7. Pro Batch Pipeline & ArchViz Presets (archbridge_cad.run_pipeline)”Executes the full cleanup sequence across all selected mesh objects in a single deterministic Undo step.
- Edition: Pro only (cleanly stripped from the Lite
.zip) - Built-In ArchViz Presets (
scene.archbridge_cad.pipeline_preset):REVIT_MM_TO_M— Revit / AutoCAD (mm -> Meters): NormalizesMM→METERS, welds at0.5 mm, repairs non-manifold geometry, dissolves coplanar faces (1.0°), repairs outward normals.SKETCHUP_IN_TO_M— SketchUp (Inches -> Meters): NormalizesINCHES→METERS, welds micro-gaps, removes interior fins, dissolves coplanar triangulation, repairs normals.RHINO_CM_TO_M— Rhino (cm -> Meters): NormalizesCM→METERS, welds NURBS-tessellation seams, repairs non-manifold edges, dissolves coplanar surfaces, repairs normals.US_IMPERIAL_FT— US Imperial (Feet): Normalizes source CAD units toFEET(IMPERIALscene units) while applying the full cleanup sequence.CUSTOM— Custom (Panel Settings): Runs the full batch pipeline using your current individual N-panel parameters.
- Execution Order:
Unit Normalize→Duplicate-Vertex Weld→Non-Manifold Auto-Fix→Coplanar Dissolve→Flipped-Normals Repair.
8. Support Diagnostics (archbridge_cad.copy_diagnostics)
Section titled “8. Support Diagnostics (archbridge_cad.copy_diagnostics)”Copies the add-on version/edition, Blender build details, OS, Python version, active scene units, and the last recorded error traceback directly to your clipboard. See Diagnostics, Licensing & Policy.
Pro vs. Lite Comparison
Section titled “Pro vs. Lite Comparison”| Feature / Operator | Lite (extensions.blender.org) |
Pro (Superhive / Bundle) |
|---|---|---|
archbridge_cad.dissolve_coplanar |
Included | Included |
archbridge_cad.repair_normals |
Included | Included |
archbridge_cad.highlight_non_manifold |
Included | Included |
archbridge_cad.weld_vertices |
Included | Included |
archbridge_cad.normalize_units |
Included | Included |
archbridge_cad.fix_non_manifold |
— | Included |
archbridge_cad.run_pipeline (Multi-Object Batch & Presets) |
— | Included |
archbridge_cad.copy_diagnostics |
Included | Included |
Undo & Headless Scripting Workflow
Section titled “Undo & Headless Scripting Workflow”All operators work identically in blender --background --factory-startup pipelines without requiring a 3D Viewport area:
import bpy
# Select imported CAD mesh objectsfor obj in bpy.data.objects: if obj.type == 'MESH': obj.select_set(True) bpy.context.view_layer.objects.active = obj
# Pro: run the deterministic multi-object Revit/AutoCAD cleanup pipelinebpy.ops.archbridge_cad.run_pipeline()
# Or invoke individual operators (available in both Lite and Pro)bpy.ops.archbridge_cad.normalize_units()bpy.ops.archbridge_cad.weld_vertices()bpy.ops.archbridge_cad.dissolve_coplanar()bpy.ops.archbridge_cad.repair_normals()Press Ctrl + Z in interactive Blender (or call bpy.ops.ed.undo()) after any operation to restore exact pre-cleanup geometry, normals, and object transforms cleanly.