Skip to content

0.3.136 - the two gaps that were real

Choose a tag to compare

@wudahua wudahua released this 15 Nov 10:28
· 18 commits to main since this release

The 2026-11-15 reports ended their correction with a list of what is left. Two
of those items were "already exists but nothing says so", and 0.3.135 closed
them. Two were genuinely missing, and they are what this release does: C2, a
multi-view sheet has no datum, and R2, the polyline-to-spline conversion's cost
cannot be read back. Both are answered with measurements that can come out wrong,
and the wrong case is in the release notes as well as the right one.

C2 - SEVERAL VIEWS, ONE SHEET FRAME

import_drawing(views=[...]) several regions in ONE call, one sketch each.
Every entry takes the page/region/layer/
min_size/max_aspect/closed_only filters plus
its own plane, offset and name.

ONE ANCHOR FOR THE WHOLE SHEET every view is shifted so a single anchor
(default: the lower-left corner of the union)
sits at the sketch origin. This is the fix: a
per-view origin='bbox' - the only thing that
existed - put each view's own corner at (0,0)
and destroyed exactly the alignment the sheet
had.

THE SHARED AXIS IS u the reply compares the views' world boxes and
names the axes they agree on: "view 1 and view
2 agree on X (0.000..60.000 mm)". A FRONT view
is {'type':'frame','origin':[0,0,0],
'u':[1,0,0],'v':[0,0,1]}, a TOP view is the
same with 'v':[0,1,0]; both put the sheet's x
on world X.

MEASURED (B30 2026-11-15) a 60 x 40 view on the front frame and a 60 x 25
view on the top frame padded to an X range of
0.000..60.000 IN BOTH SOLIDS, and the front
view alone is already 0.000..60.000 - so the
agreement is not two boxes covering for each
other.

THE NEGATIVE CASE IS REPORTED 'xy' and 'zx' have u vectors of +X and +Z, so
the same sheet answers NO axis agrees instead
of a green tick. Top-level page/region/layers/
min_size/max_aspect/closed_only/plane/offset/
name beside views are REFUSED as ambiguous, and
so is origin='bbox'. Every entry is checked
before any file is read.

R2 - THE CONVERSION NOW SAYS WHAT IT COST

deviation_mm import_drawing(profile_mode='spline') and
catia_gsd_spline(element=..., closed=true)
probe the outline's SIDE MIDPOINTS - where an
interpolating curve bulges - plus three corners
it must pass through. The corners are the
calibration: 0.0000 mm means the probe measures
what it claims; when they do not, the reply
says the reading is NOT calibrated instead of
quoting a maximum.

MEASURED (B30 2026-11-15) a 60 x 40 rectangle: corners 0.0000 mm, side
midpoints 18.3594 mm for the sketch spline and
13.8286 mm for the 3D spline.

THE TWO ARE DIFFERENT CURVES 100 x 40 rectangle, same side midpoint:
33.1387 mm (2D sketch spline) vs 25.6325 mm
(3D gsd spline); at the centre 41.1690 vs
45.6325. Neither side quotes the other's
number, and catia_gsd_spline's description
carries both so the difference is not a
surprise later.

deviation=false turns the measurement off on either tool. It
costs one point element per probe, deleted
again after.

WHAT WAS MEASURED TO GET HERE, AND WHAT STAYED IMPOSSIBLE

A point-on-curve cannot be placed on a Line2D inside a sketch, nor on a CLOSED
spline - both answer "方法 UpdateObject 失败" - so the probes are COORDINATE
points and the target is the curve itself.

A SKETCH exposes NOTHING to SPAWorkbench: Length, Area, Volume, GetPoint,
GetCOG, GetPlane and GetBoundingBox all fail on a sketch reference. So a view's
world box is computed from its frame, and the alignment is PROVEN by padding
both views and reading the solids. There is no way to ask a sketch where it is.
Both facts are in catia_diagnose's ceilings, beside the 2D-vs-3D interpolant
difference.

A cell-count correction, found by this release's own acceptance run: a four-LINE
rectangle reports FIVE sketch elements, because the sketch's own absolute axis
(绝对轴) is one of them. The 0.3.135 reply credited the extra element to the
spline's control points, which was wrong for a segments import; both replies
now name both reasons and the mode they apply to.

VERIFIED ON B30: scripts/b30_v0437_acceptance.py 17/17 - single-view regression,
deviation quoted and calibrated, its own number from gsd_spline and different
from the 2D one, deviation=false silent, two sketches from one call, the shared
axis named, both solids 0..60 in X, the NO-axis-agrees case, and an explicit
anchor.

2184 tests. 153 tools. 440 files, 2317389 bytes.