d57835232a
- Driving angle lowering: addAngle folds directed 0-360 values to the undirected magnitude; the solve keeps the branch nearest the initial geometry. Angle measurement normalizes to [0, 360). - constrain_line_distance_rsketch: minimum offset between lines via a signed point-line distance (initial side preserved). - constrain_points_horizontal/vertical_rsketch for two-point alignment. - constrain_normal_rsketch (line through curve center), constrain_mirror_rsketch (entity mirror decomposed to point symmetric pairs with nearest-initial endpoint pairing), and constrain_midpoint_points_rsketch (two-point midpoint via helper segments: equal length + parallel through the shared point). - Repair: symmetric lowering no longer uses py-slvs addSymmetricLine, which mirrors about the workplane u-axis regardless of the axis entity; it now decomposes to midpoint-on-line + perpendicular. Regression tests cover vertical and diagonal axes. - FreeCAD translator: new kinds map to Sketcher Angle/Distance (point to line)/point-form Horizontal/Vertical/PointOnObject (center on line)/ Symmetric (line mirror and three-point midpoint); priority map, emitter registry, capabilities, and canonical op set updated. - 24 new tests (solve semantics, side/basin behavior, serialization round-trip, FCStd script mapping) + regenerated API doc pages.
307 B
307 B
Const
Class Definition
class Const(value: float, expr_id: str = field(default_factory=lambda : _make_expr_id('const')))
Source: params/expr.py
Import Surface
- top-level:
from simplecadapi import Const
Description
Immutable constant node used in the v2 expression graph.