Skip to content

RazorCAD 0.18.0-beta

Pre-release
Pre-release

Choose a tag to compare

@Labs9119 Labs9119 released this 27 Oct 18:10

RazorCAD 0.18.0-beta

What is new since v0.17.4-beta:

Version 0.18.0-beta

  • Installer, user manual (93 pages) and website for 0.18.0-beta.

PR #6's later commits: G2 loft ends and patches, sketch offsets, shared Extrude/Revolve selection, reference constraints, planes along paths

Merged from Claw267's pull request #6 (16 more commits):

  • Loft and Lofted Surface: G2 (curvature) at the ends against adjacent support faces, also with a compatible
    guide; loft connectors between the profiles that can be edited (start point, seam and direction) and are kept
    with the part.
  • Filled Surface: G0, G1 or G2 for each boundary edge, checked on the finished faces; an option to pick a
    connected chain of boundary edges; support faces picked where an edge has two.
  • Planar Surface: sketch regions (with their holes), individual sketch entities, or closed loops of model edges.
  • Extrude and Revolve, solid and surface: one way of picking profiles, axes, directions and operations; two
    sides with their own depths or angles; Join, New body or Cut with a target body; an extrusion can start at an
    offset or from a reference surface.
  • Sweep and Surface Sweep: profile, path and guide picked in the view, each with its own chain selection.
  • Sketching: offsets of chains with splines, on one or both sides, kept parametric; tangency where a line and a
    spline meet; regions split by internal curves can be picked.
  • Reference planes, axes and points: shared constraint definitions (up to three references, alternative
    solutions); planes and points at a distance along a sketch or model curve; a reference plane is drawn centred on
    the geometry that defines it, and sketch entities are listed one by one in its selectors.
  • Sketch tools remember the variant used last (split buttons).

A faster geometry kernel (the Kernel Lab kernel)

  • Both geometry kernels rebuilt from source: OpenCascade 8.0.1 with two speed fixes (the same results), a newer
    WebAssembly toolchain with whole-program optimisation, and PR #6's guided-surface code built in from its source.
  • Measured on 16 test parts (Windows, against 0.17.4-beta's kernel): full rebuilds with the multi-threaded kernel
    14.2 s → 4.7 s, edits 5.5 s → 2.4 s; with the single-thread kernel 24.5 s → 13.6 s and 13.5 s → 3.5 s.
  • Faces are meshed and read in parallel, sheet-metal folds are remembered between rebuilds, and picking a face
    checks the nearby ones first.
  • Cone and torus faces are recognised as such (for mates and measuring).
  • The browser version publishes each kernel in two parts (the website's host takes files up to 25 MiB).

The rest of PR #6: a geometry kernel with guided-surface tools, loft end conditions, guide constraints, extrude profiles picked in the view, Shell checks

Merged from Claw267's pull request #6 (the sweeps and the updater came in earlier today):

  • Geometry kernel rebuilt (replicad_single / replicad_multi, the same OpenCascade with a small native addition,
    tools/native/surface-patch.cpp; how to rebuild it: tools/native/README.md). It adds patches built on guide
    networks and a quick local nearest point on a face, used by the features below. Everything else builds as before
    (the whole test suite, and the sheet-metal checks against real parts).
  • Loft and Lofted Surface: Start and End Conditions: Free, Normal to profile, a Direction, or Tangent to adjacent
    faces (G1, faces picked in the view), with an Influence and Reverse; holes and Thin walls included; guide curves
    with them use Adaptive approximation.
  • Loft guide construction → CAD constraints (two profiles): the guide edges themselves bound the patches, with
    C0, G1 or G2 across the guide seams (checked to 0.0001 mm and 0.5°).
  • Guided lofts are checked against their guides on the finished surface, with more sections added (16 to 128)
    until every sampled guide point is within 0.01 mm; otherwise an error asks for a profile near the tightest bend.
    The check measures each point against the loft's edges first (guides mostly run along them), which keeps it quick:
    the tutorial's guided loft builds in 0.6 s (4.7 s measured against the faces alone).
  • Extrude: profiles picked in the view as for Loft: click inside closed regions or on contours, several coplanar
    ones from different sketches, a ring or the disk inside it; open contours make it Thin. Clicking a sketch in the
    tree takes all of it; parts made before extrude as they did.
  • Shell checks the solid it makes and refuses an offset that just returns the original body; small fillets
    outside a thinner wall are kept with sharp corners inside (the note says so).
  • Midpoint: one relation button for a point on a line's midpoint and for two lines' midpoints together.
  • Measure between a point and a face uses the quick nearest point when it lands on the face.
  • Tests: loft-cad-guide-constraints, surface-cad-guide-constraints, surface-differential-analysis,
    surface-guide-continuity, shell-valid-cavity, loft-end-guides-and-walls, loft-end-conditions,
    loft-guide-edit-regeneration, loft-g2-difficult-guides, extrude-contour-references, extrude-canvas-selection, and
    a stricter loft-guide-accuracy (with example parts in tests/data). The whole run takes about 85 s here (40 s
    before); GitHub's test job may now run up to 90 minutes.

Sweeps: a guide curve, Parallel orientation and a twist; the updater waits for RazorCAD to close (from PR #6)

From Claw267's pull request #6, taken on its own (without its rebuilt geometry kernel, the loft end conditions, the
loft guide constraints, extrude contour selection or the shell changes):

  • Sweep and Swept Surface: Guide (optional). A second curve (sketch chain, 3D sketch, curve or helix) the profile
    follows. Guide controls → Orientation turns the profile to keep facing the guide at its own size; Section
    size
    scales it evenly so its edge stays on the guide (the guide starts on the profile's edge). The guide's
    contact is checked to 0.0001 mm, and geometry that doesn't fit gives an error rather than an ordinary sweep. A
    guided solid sweep takes one closed profile without holes or Thin; a swept surface takes an open or closed one.
  • Orientation: Perpendicular to path (as before) or Parallel to initial profile (moved along the path without
    turning). Twist angle (with Perpendicular): the profile turns by the total angle along the path, evenly by
    distance (equations allowed; 0 is the usual sweep; needs an open path with no sharp corners).
  • The panel names the fields Profile, Path and Guide in the view while the sweep is edited; a sketch clicked in the
    tree goes to the field last clicked, and the three can't be the same curve.
  • Updater: the helper that runs the setup now waits (up to 2 minutes) for RazorCAD to close before installing,
    and the restarted RazorCAD unpacks the new version instead of reusing the old one's files. If the helper can't
    start, RazorCAD says so and stays open.
  • Tests: sweep-orientation-and-twist, sweep-path-guide, surface-sweep-path-guide (with their case modules and example
    parts in tests/data), and tests/test_updater.py, now part of the whole run (--only updater on its own).

Tests: the sheet-metal tray's measure time limit fits GitHub's runner

  • convert-sheet-corners checks that the tray's exact measure stays quick: 0.15 s on a desktop, 16 s before it was
    integrated span by span. GitHub's runner took 4.5 s (over the old 3 s limit) while everything else passed; the
    limit is now 10 s, which still catches the slow measure.

Tests: the variable-fillet point drag waits for the edges on slow machines

  • The fillet-point-drag test (failing on GitHub's Windows runner, which runs the suite far slower than a desktop) now
    waits until the model shown for editing has its edges before it drags the point, and until the rebuild after the
    drag is done; it reports a failure in words instead of stopping with an error when the point is not found.

Install: download RazorCAD-Setup and run it (see "Read me first.txt"). Licensed under the GNU GPL v3 or later.