Expand description
PartView: a part as the viewport draws it, and picking entities of it
with a Pointer.
A part is drawn from its rasterization — sampled edges, triangulated faces, outlined sketches — and a pick tests against exactly that, never re-deriving geometry of its own, so a pick cannot disagree with what is on screen. The same goes for what the viewer draws besides the part: the datums are laid out here, by the sizes the viewer draws them with, and picked by the same rules.
Structs§
- Extent
- Where the drawing is and how big: the center and diagonal (at least 1) of the box around it. Datum planes and axes, which are endless, are drawn this big around the point of them nearest the center.
- PartHit
- An entity a pointer is over, where, and how far along its ray.
- Part
View - A part as the viewport draws it, every entity by name — and, serialized, what a viewer draws.
- View
Curve - A curve of a sketch, as drawn, in the sketch’s plane.
- View
Datum - A datum of the part.
- View
Edge - An edge of the part, as drawn: its curve sampled into a polyline.
- View
Face - A face of the part, as drawn: triangulated, with the surface’s normal at each corner.
- View
Sketch - A sketch of the part, as drawn: its plane, its closed regions (each an
outer loop and its holes), its curves and its points, in the plane’s
u/vcoordinates. - View
Sketch Point - A point of a sketch, as drawn, in the sketch’s plane.
- View
Vertex - A vertex of the part, as drawn.
Constants§
- FRAME
- How long a frame datum’s axes are, in reaches: it is drawn at a constant
size on screen, with its origin ball, its axes and the squares of its
planes laid out in fractions of that, in
PartView::pickas in the viewer.
Functions§
- solid_
of_ face - The solid that owns
face: a face is part of exactly one shell, and a shell of exactly one solid.