Skip to main content

Module view

Module view 

Source
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.
PartView
A part as the viewport draws it, every entity by name — and, serialized, what a viewer draws.
ViewCurve
A curve of a sketch, as drawn, in the sketch’s plane.
ViewDatum
A datum of the part.
ViewEdge
An edge of the part, as drawn: its curve sampled into a polyline.
ViewFace
A face of the part, as drawn: triangulated, with the surface’s normal at each corner.
ViewSketch
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/v coordinates.
ViewSketchPoint
A point of a sketch, as drawn, in the sketch’s plane.
ViewVertex
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::pick as 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.