Repository navigation
0.3.131 - the edges can be read, and the picture can be closer
The 2026-11-13 report (13th round) was already answered by 0.3.123 - its two P0s,
its P1-1 and P2-1/P2-2 are in that entry. Two items were left; both are answered
now with a measurement instead of a note.
- P1-5 - A TOPOLOGICAL EDGE CAN BE SAMPLED. The note that said otherwise had
measured the wrong object.
The ask was list_edges(coords=true, samples=N), because one point per edge cannot
rebuild a curve: the reporter had to recompute every contour from side files.
What stood in the way was a note in this project saying a topological edge cannot
carry a point-on-curve parameter. The note was wrong - it had measured the wrapper:
- Edge.GetCurve(), GetVertices() and GetFaces() do NOT exist on the object the
selection hands back (".GetCurve", measured on B30 2026-11-15). That
is where the note came from. It is a real dead end, but not the only route. - AddNewPointOnCurveFromPercent(edge, ratio, 0) + UpdateObject WORKS: 12/12
edges of a padded plate, 18/18 once four corners were filleted (so ARCS
count), and five points at 0/25/50/75/100 % of a 40 mm edge landed at
(0,40,10) (0,30,10) (0,20,10) (0,10,10) (0,0,10) - exactly 10.000 mm apart. - The real limit is a CLOSED rim: the two rims of a padded circle refuse 0/2
("方法 UpdateObject 失败"), because a point-on-curve parameter needs a curve
with two ends - the same matrix the engrave code measured.
So samples=N places the points in a scratch set, reads them all in ONE batch, and
deletes the set. An edge that refuses carries samples_unavailable with CATIA's own
words, because an invented point would be a profile the part never had. Capped at
50 per edge and 400 per call, both refused with the numbers in the message.
- P2-3 - THERE IS NO CROP HERE, AND THERE IS NOW A ZOOM.
crop= was asked for so a report figure would not need an external image tool. It
is not implementable here without lying about it: CATIA exposes no capture region,
and cutting the written JPEG needs an image decoder, which this server does not
ship (its dependencies are mcp, pywin32 and jsonschema).
What exists instead is catia_screenshot(zoom=), which multiplies the camera's own
zoom - measured writable and exact on B30: the object covered 24668 / 35989 /
41588 pixels at x0.6 / x1 / x1.6 of the same window. The zoom is restored after
the capture, so the next screenshot is of the window the caller was looking at.
A BUG THIS FOUND IN ITSELF: the first version captured byte-identical images at
x1 and x1.6. viewer.Update() was being called while the camera was still where it
was, and CaptureToFile does not always force a redraw - the repaint now happens
after the zoom is set. Without the acceptance case's byte comparison, this would
have shipped as "the zoom parameter exists and does nothing".
VERIFIED ON B30: scripts/b30_v0433_audit.py 7/7 (five points 10.000 mm apart,
18/18 with arcs, closed rim marked not invented, no scratch set or volume left
behind, the 400-point cap, two captures that differ, camera restored), plus the
probe that settled the sampling rule, scripts/b30_v0431_probe_edge_samples.py.
2118 tests. 151 tools. 428 files, 2238005 bytes.