Repository navigation
probe(probes): count turned columns and set the section the export draws, as drawn and turned, against the saved mesh (#2096) - #2097
DrunkOnJava wants to merge 3 commits into
Conversation
|
Corrected in a later comment: row 2's misses are columns whose mesh outline is not a rectangle (1,734 circle-like); on the 426 with a rectangular outline the answer key holds. Rows 1 to 5, read on Measure 44511799400 (
What this means for #2096. Its code reading holds for columns drawn from a rectangular or hollow section or from the record box, but not for I-section columns, which already turn. On the 2024 to 2027 saves of every file Measure reads, no column falls in the case #2096 describes, so a fix cannot be checked on them. The one model known to have columns turned off its grid is the reporter's on #1839, a frame 4 degrees off; whether its columns take this route is what the |
…tline size, their centre offset and the outline corner count (#2096)
|
A correction to row 2 of my last comment. I wrote that the mesh is a fair answer key on the BIM4LCA offices' columns and not on three sample projects', and that why was not read. It is read now: the answer key holds on every column whose mesh outline is a rectangle, and 1,785 of the 1,801 misses are columns whose outline is not. The probe now prints each column's section and mesh-outline sizes along the model's axes, how far their centres lie apart and how many corners the mesh's outline has (
So, restated for rectangular outlines, row 2 holds: 426 of 426. Two limits on that:
Rows 3 and 4 stand as posted: no column on these files is turned more than 2 degrees off a multiple of 90 and drawn from a rectangle, so they are unexercised. |
|
The 16 eight-cornered misses, read. These are the ones my row-2 correction listed as not read yet (run 44525639821,
That fits a chamfered column, a rectangle with its corners cut off. It is not shown corner by corner, and the 8 does not prove four cut corners: the one six-cornered column on the housing terrain files (1422262, in both saves) has
For row 2 these stay misses. The box matches the outline's extents and centre, but the corner test cannot judge a column whose outline is not its box: it reports the cut corners, not whether the box sits where Revit's column does. That matters for #2096, since a turned column of this kind needs a check on its extents and centre rather than its corners. |
Summary
A probe for #2096: it counts the columns turned off the model's axes and, for each column the export draws from its type's section, sets that section, as drawn today and turned by the column's own transform, against the column's saved mesh in the same file. Probe only; no export changes.
Motivation
#2096 was read from the code: a column whose body is not its saved mesh is drawn as its section square to the model's axes, because no reader gives a column its instance's plan axis. No open model was known to have a turned column, so nothing has measured it. A column's saved mesh is drawn turned as Revit draws it, so on any file where a column has both, the mesh is the answer the section should give, with no Revit export needed.
Changes
probes/examples/probe_2096_turned_columns.rs: per column, the instance transform's plan angle (aligned,quarter,oblique), the export's rotation, the section kind (rectangle,boxwhere the drawn rectangle equals the record box,circle,outline,other), and, where the saved graphics mesh whole, the farthest corner of the section from the mesh hull's nearest vertex, as drawn (drawn) and turned about its centre by the column's angle less the export's rotation (turned, the outline the fix would draw); tallies per turn and section kind.Testing
Rows, registered before the run is read. One Measure run of this head with the probe, every model (
nordic,r2025,samples), no scorer.fileline and acolumnline for everyIfcColumnthe section path draws.alignedcolumns with a mesh and aboxorrectanglesection, at least 90 in 100 havedrawnwithin 0.01 ft. If fewer do, the mesh hull is not a fair answer key (tapered or composite columns, a section placed off the mesh) and rows 3 and 4 are read only after that is understood.obliquecolumns more than 2 degrees from the nearest multiple of 90 degrees (byangle), with arectanglesection and a mesh, every one hasdrawnover 0.01 ft: a 1 ft column needs about 0.8 degrees before a corner moves 0.01 ft, so columns closer than 2 degrees are reported apart, not held to this row. The same forquartercolumns labelledrectangle.turnedwithin 0.01 ft. If so, the next commit gives columns their instance's plan axis and draws the section turned, measured with a full Measure run againstmain. If not, the reasons are counted first. Where no column falls in row 3, rows 3 and 4 are unexercised, not passed.boxmeans the drawn rectangle equals the record box's plan rectangle: onobliquecolumns that is the record-box fallback, which Columns turned off the model's axes are drawn unturned: at their section's size, or too big where only the record box is known (read from the code, unmeasured) #2096 says is too big rather than turned wrong, but onalignedand squarequartercolumns a section that equals the box is labelledboxtoo, so there it is not told from a section.Amended before the run was read (rows 2, 3 and 5, on review of the probe's labels and angles): row 2 counts
boxsections withrectangleones, since an aligned column's section equals its record box and the probe labels itbox; row 3 holds only columns more than 2 degrees from the nearest multiple of 90 degrees, and its quarter clause takes the columns labelledrectangle; rows 3 and 4 pass on no empty set; row 5 says whatboxcovers. The run reads commit90fc9b23;88df326fafter it changes only the probe's doc comment.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.