Skip to content

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

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

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, and Seam boundaries
  • Behavior: Uses deterministic bmesh.ops.dissolve_limit ordering 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 (0 linked faces)
    • Open boundary edges (1 linked face)
    • Multi-face non-manifold T-junctions / internal fins (> 2 linked faces)
    • Loose vertices & zero-area degenerate sliver faces
  • Behavior: Records defect metrics on scene properties and selects offending edges/vertices on mesh data safely in Object Mode, Edit Mode, and --background headless 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 (default 0.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 via bmesh.ops.holes_fill up to max_hole_sides (default 8, 0 = unlimited) so intended doorways and windows stay open
  • Behavior: Executes all enabled repair passes deterministically inside a single undoable bmesh transaction.

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)
  • Behavior: Runs deterministic bmesh.ops.remove_doubles and 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: METERS or FEET
  • Behavior: Transforms mesh vertex coordinates directly (obj.scale normalized cleanly to (1.0, 1.0, 1.0)), updates scene.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): Normalizes MM → METERS, welds at 0.5 mm, repairs non-manifold geometry, dissolves coplanar faces (1.0°), repairs outward normals.
    • SKETCHUP_IN_TO_M — SketchUp (Inches -> Meters): Normalizes INCHES → METERS, welds micro-gaps, removes interior fins, dissolves coplanar triangulation, repairs normals.
    • RHINO_CM_TO_M — Rhino (cm -> Meters): Normalizes CM → METERS, welds NURBS-tessellation seams, repairs non-manifold edges, dissolves coplanar surfaces, repairs normals.
    • US_IMPERIAL_FT — US Imperial (Feet): Normalizes source CAD units to FEET (IMPERIAL scene 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.

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

All operators work identically in blender --background --factory-startup pipelines without requiring a 3D Viewport area:

import bpy
# Select imported CAD mesh objects
for 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 pipeline
bpy.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.