Structure detail levels in checks#
A structure type says how much of the structure its file describes
(detail, see Structure libraries):
-
stick figure — a shaft and crossarms to the attachment points, or
[[body]]polylines all in one plane (a face); -
sticks of the structure — joints and members without cross-sections, or
[[body]]polylines that make a 3D object (their vertices, all together, not in one plane within 1 mm:StructureType::body_is_3d); -
full design — every member with its cross-section and a supported joint (or a separate
.ohlfemodel); extensions need the same. Only a joint'ssupportcounts (StructureType::missing_for_design): a structure standing only on springs (spring) stays at level 2 today. A pole is a full design when the pole check can read it (a.ohlpnamed, or a complete[pole]); the higher of the two levels counts. -
full design with joint details (2026-11-11) — a level 3 lattice whose every checked member end has its joint detail: a
[[connection]]for that end, or the end running on through the joint as one part (StructureType::ends_without_joint_detailsempty). A pole and a structure with a separate model stay at 3. Only at level 4 may the calculation take the joints (joint_details = true,StructureType::joint_details_taken); everywhere else level 4 behaves as level 3 (Detail::is_design).
The level follows from the file's content (StructureType::detail()), so it
rises as a structure is filled in.
Rule for every new check or test whose result depends on the structure's
shape (distances to the structure body, string swing against the
structure, structure analysis, clearances inside the window of a lattice tower,
anything reading body, the joints and members, or the .ohlfe model):
- before implementing it, decide first what it does at each level — e.g. not available, an approximation (from the stick figure), or the exact check — and what it reports when a structure's level is too low;
- write that behaviour, per level, in the check's documentation and test each level;
- a check never silently treats a stick figure as an outline or a full design.
In code the level is ohl_structures::Detail (StructureType::detail()).
Agreed so far: the member checks and the finite-element model take the connections only at level 4 with the file's option on; below, or with the option off, the simple form, said in the results (decided 2026-11-11). Also agreed: clearances to the structure body — none at level 1 (LiDAR points are a separate topic), computed at levels 2 and 3, the tests still to be defined.