You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
volume_readings: a round bar cut at a slant has elliptical end faces, which the shell reading leaves as another reason #1712
tools/re/volume_readings.py reads a shell as explained when each round end face of rvt-rs's (at least 12 vertices on one radius, circle_of) has a polygon of Revit's inscribed in it. A round bar cut at a slant, a mitred pipe end, has an elliptical end face, so its shell has "no round end face" and reads other, though Revit's export draws it as the same inscribed polygon prism.
Measured
Snowdon Towers Architectural, RE-426 (Measure 43002827683, head ea1f01fd): of the 145 shells of the 22 railings outside 1% that the scorer does not read, 72 give "no round end face in rvt-rs's shell". On railing 622056 they are 6 bars 3.09 ft long cut at a slant at both ends: 130 vertices and 236 triangles in rvt-rs's mesh against 8 and 12 in Revit's, volume ratio 1.4970. All 8 of Revit's vertices are vertices of rvt-rs's mesh (distance to the nearest 0). The end faces of these bars also come out of caps() as 4 to 8 caps of 5 to 12 vertices, not one cap each; the cause is not found.
Done when
A cap whose vertices lie on an ellipse in one plane (within CIRCLE) is read by mapping it, and Revit's cap, to the circle of the ellipse's minor semi-axis (an affine map of the plane scales both areas alike), then as a circle is read now.
The 6 bars of 622056 read explained, and no body that reads other today reads explained without a polygon of Revit's inscribed in the mapped circle, so a body that is wrong still reads wrong.
Measure's shell readings: line before and after, on the 2024 samples and the BIM4LCA files, is given on the PR.
Result: #1722 reads the elliptical end faces; the first half of the second item stays open, with the reason measured.
Why the end faces of a bar cut at a slant came out as 4 to 8 caps of 5 to 12 vertices (the cause #1712 said it had not found), three of them, in tools/re/volume_readings.py:
The files write six decimals, so each vertex is off by up to 5e-7 ft in each coordinate and the triangles of a slanted cap are coplanar to about 3e-6 ft, where COPLANAR was 1e-6. At 1e-5 the 55-vertex end face of a bar is one cap.
A cap's normal was its first triangle's, and a sliver's is off by the error of its vertices over its width: 0.5 degrees on the end of a bar cut at a slant. It is now the sum of the cap's triangles'.
Revit draws the bar as a prism of 8 vertices, so its end face is a quadrilateral of two triangles, and a cap needed three. Revit's caps are read with two.
With the end faces found, an ellipse is read as the issue asked: a least-squares conic fit in the cap's plane, and the affine map that takes it to the circle of its minor radius (every area in the plane scales alike), applied to Revit's caps too, then read as a circle is. Only a shell with no circle is read by its ellipses, so nothing read before changes.
Against the done-when:
Met. A cap on an ellipse in one plane is read by the map.
First clause not met, second met. The six bars of railing 622056 do not read explained: each end face is one cap, a circle after the map, and Revit's quadrilateral is found, but the shell's volume ratio is not the end faces' area ratio, and the scorer now says so (the volume ratio is not the end faces' area ratio, where it said no round end face in rvt-rs's shell). Revit draws these bars as a twisted prism of 8 vertices (its end quadrilaterals are not parallel), so its volume is not the end faces' area ratio times the length, and a body that is wrong still reads wrong: nothing reads explained without a polygon of Revit's inscribed in the mapped circle.
Met. Measure, the scorer of main (43032192721) against the branch's (43032197294), 28 models: 13 of the 17 with a Revit export read the same line for line; the four BIM4LCA office files change in one railing each (2598350): 17 to 19 of its 71 other shells read explained and 52 to 54 stay other with the new reason. Across the 17: readings 147 and 147, equal shells 187 and 187, explained shells 359 to 431, other shells 332 to 260.
What stays open here: the twisted prism. Explaining those 6 bars (and the 52 shells of the office's railing) would take the scorer reading Revit's prism as a prismatoid from its 8 vertices and comparing its volume with the round bar's by the end faces, which is a different test from the area ratio. Whether it is worth a test of its own, when rvt-rs's body is the true round bar and the difference to Revit's simplified one is about 2.5% (the office's railing: volume ratio 1.5218 against an end-face area ratio of 1.5601), is decided when #1635 (railings drawn as record boxes, then from their meshes) reaches these bars: the prismatoid test goes in with it if a railing's body is still outside 1% there. #1722 refs this issue and does not close it.
Activity
fix(research): a plane that meets a cylinder along an edge across bot…
DrunkOnJava commentedon Nov 11, 2026
Result: #1722 reads the elliptical end faces; the first half of the second item stays open, with the reason measured.
Why the end faces of a bar cut at a slant came out as 4 to 8 caps of 5 to 12 vertices (the cause #1712 said it had not found), three of them, in
tools/re/volume_readings.py:COPLANARwas 1e-6. At 1e-5 the 55-vertex end face of a bar is one cap.With the end faces found, an ellipse is read as the issue asked: a least-squares conic fit in the cap's plane, and the affine map that takes it to the circle of its minor radius (every area in the plane scales alike), applied to Revit's caps too, then read as a circle is. Only a shell with no circle is read by its ellipses, so nothing read before changes.
Against the done-when:
the volume ratio is not the end faces' area ratio, where it saidno round end face in rvt-rs's shell). Revit draws these bars as a twisted prism of 8 vertices (its end quadrilaterals are not parallel), so its volume is not the end faces' area ratio times the length, and a body that is wrong still reads wrong: nothing reads explained without a polygon of Revit's inscribed in the mapped circle.main(43032192721) against the branch's (43032197294), 28 models: 13 of the 17 with a Revit export read the same line for line; the four BIM4LCA office files change in one railing each (2598350): 17 to 19 of its 71othershells read explained and 52 to 54 stayotherwith the new reason. Across the 17: readings 147 and 147, equal shells 187 and 187, explained shells 359 to 431, other shells 332 to 260.What stays open here: the twisted prism. Explaining those 6 bars (and the 52 shells of the office's railing) would take the scorer reading Revit's prism as a prismatoid from its 8 vertices and comparing its volume with the round bar's by the end faces, which is a different test from the area ratio. Whether it is worth a test of its own, when rvt-rs's body is the true round bar and the difference to Revit's simplified one is about 2.5% (the office's railing: volume ratio 1.5218 against an end-face area ratio of 1.5601), is decided when #1635 (railings drawn as record boxes, then from their meshes) reaches these bars: the prismatoid test goes in with it if a railing's body is still outside 1% there. #1722 refs this issue and does not close it.
ci(re): the volume reading finds the end faces of a bar cut at a slan…
docs: 0.19.0 is the published release, each channel checked from what…