Skip to content

Releases

v0.4.0 — High-Speed Solid Helpers, 20 Smart Features, DfAM Upgrades & Multi-Color Explode/Section WebGL

Choose a tag to compare

@1orgar 1orgar released this 15 Nov 11:28

🚀 What's New in v0.4.0

⚡ High-Speed TNP-Safe Solid Modeling (cad_helpers.py)

  • cad.rounded_box: Analytic rounded box generator (zero makeFillet crash risk).
  • cad.safe_fillet & cad.safe_chamfer: Edge-filtered dress-ups with automatic 100% -> 75% -> 50% fallback on OpenCASCADE kernel rejection.
  • cad.boolean_chain: Batch boolean union & subtraction with built-in removeSplitter() coplanar seam refinement.
  • cad.linear_pattern & cad.polar_pattern: 1D/2D linear grid and circular array generators.
  • cad.shell_solid & cad.align_to: Thin-walled enclosure hollowing (makeThickness) and semantic bounding-box alignment (center, min, max, stack_top, stack_bottom).

🧩 20 Semantic Smart Features (apply_smart_feature)

  • Added 4 new enclosure & assembly primitives: snap_fit (cantilever hook), enclosure_lip (perimeter tongue & groove rim), dovetail_joint (sliding male/female dovetail), and mounting_ear (flanged stadium-slot ear).
  • Automatic operation inference (fuse for additive features, cut for subtractive cutouts) and normal vector auto-orientation.
  • Clean PartDesign::Body replacement with ShapeColor/Transparency preservation and automatic hiding of superseded bodies.

🛠️ Hardware Cavities & DfAM Upgrades

  • cut_component_cavity: Carves exact mounting cutouts and screw holes for c14_socket, keystone_rj45, fan_40mm, and fan_80mm instead of outer bounding boxes; supports passing existing Dummy_* object names.
  • analyze_stability: Supports XY, XZ, and YZ base planes and discretizes curved/cylindrical base edges (e.discretize(Number=16)).
  • audit_wall_thickness: Added 3D BoundingBox overlap checks for opposing planar faces and coaxial cylindrical wall thickness auditing.
  • split_part_for_bed: Generates alignment dowel pin sockets across all split axes (X, Y, Z) with configurable radial clearance.
  • inspect_geometry & generate_drawing: Added surface type breakdown (planar, cylindrical, conical, toroidal, bspline), material mass estimates (PLA_PETG, ABS_ASA, Aluminum_6061), and automatic TechDraw SVG title block population.

🌐 Multi-Color Interactive WebGL Viewer (export_viewer_html)

  • Per-Part RGB Colors (aColor): Preserves FreeCAD ShapeColor per solid or applies an automatic engineering palette for multi-part assemblies (object_name="all").
  • Interactive Explode Slider: Smoothly explodes multi-part assemblies radially/axially in real time inside the chat widget.
  • Live Section Clipping Plane: One-click cross-section cut plane with warm amber interior highlight.

v0.3.0 - WebGL 3D In-Chat Viewer & 6 New CAD/DfAM Tools

Choose a tag to compare

@1orgar 1orgar released this 27 Oct 17:26

What's Changed in v0.3.0

🎮 In-Chat Interactive 3D WebGL Viewer (export_viewer_html)

  • Zero-Dependency WebGL 2.0 Engine: Pure native GLSL shaders and matrix math without external 3D libraries or CDNs, fully compliant with strict Content Security Policies (CSP).
  • Embedded Chat Mode (mode="chat"): Compact cards (< 450px) specifically built for inline rendering via <agent-embed>.
  • Theme-Adaptive CAD Styling: Real-time detection of host dark/light theme, authentic CAD feature wireframe edge rendering, and OrbitControls (orbit, pan, zoom).
  • Compound Assemblies Support: Full support for multi-part assemblies (Part::Compound) with individual spatial translation vectors (Exploded Views).

🛠️ 6 New Advanced CAD & DfAM Tools (25 Tools Total)

  1. apply_smart_feature: Semantic parametric primitives library (honeycomb ventilation, slotted grilles, Ruthex heat-set insert bosses, captive hex nut pockets, DIN screw countersinks/counterbores, mounting tabs, snap fits, zip-tie saddles).
  2. cut_component_cavity: Boolean clearance pocket carver for packaging electronics (Raspberry Pi 5, C14 sockets, Keystone jacks, cooling fans, Mean Well PSUs).
  3. audit_wall_thickness: DfAM thickness scanner for detecting fragile or non-manifold thin walls (< 1.2 mm) prior to 3D printing.
  4. split_part_for_bed: Automated build-bed part splitter for oversized prints with interlocking alignment dowel sockets.
  5. generate_drawing: TechDraw 2D vector engineering drawing generator (multi-view orthogonal + isometric projections to vector PDF/SVG).
  6. get_selection: Human-in-the-Loop selection inspector with TNP-safe query criteria.

📦 Claude Desktop Bundle

  • Attached freecad-advanced-mcp.mcpb extension for one-click installation into Claude Desktop.

v0.0.1 - Initial Release

Choose a tag to compare

@1orgar 1orgar released this 12 Oct 19:23

FreeCAD Advanced MCP v0.0.1

Initial release of FreeCAD Advanced MCP — high-performance, in-process Model Context Protocol (MCP) server for FreeCAD v1.1+.

✨ Features

  • 11 Native CAD Tools:
    • get_view: Multi-angle Coin3D screenshots with Flat Lines styling and auto-framing.
    • inspect_geometry: Deep topology & physical properties (BoundingBox, volume, surface area, center of mass, manifold/watertight checks).
    • check_clearance: Real-time collision detection and minimum gap calculation using OpenCASCADE extrema.
    • export_geometry: Multi-format manufacturing export (STL with customizable linear/angular deflection, STEP, 3MF, DXF).
    • set_display_state: Batch visibility, shading mode, and transparency control.
    • get_document_tree: Full scene graph hierarchy and object labels.
    • manage_document: Active document query, create, open, save, close, and recompute.
    • undo_redo: Safe transaction history control.
    • execute_python: Qt main-thread execution with auto-rollback transactions.
    • execute_python_file: Run local Python scripts directly.
    • get_output_page: Paged stream reader for large logs.

🏗️ Architecture

  • Operates inside the live FreeCAD GUI on the Qt main thread with zero process overhead.
  • Supports streamable HTTP on 127.0.0.1:39280/mcp and stdio relay.
  • Attached Claude Desktop bundle: freecad-advanced-mcp.mcpb.