Skip to main content

Module geometry

Module geometry 

Source
Expand description

Geometric kinds of element: what an entity can be used as — a Point, a Line, a Plane, something Round, a Circle, a Curve — whatever target it is in. The model has them where its entities have that shape: a straight edge is a line, a flat face a plane, a circular edge a circle and something round. Other targets — the datums, a sketch, a placed part — have them too, each in its own crate, and an operation that takes several of them holds one of them (geop_core_editor::one_of!).

Each is picked from what an editor draws of the model, if that has the shape: a line by a straight edge, a plane by a flat face.

The model also has Body: a solid by its name, or a sheet — faces standing on their own, which have no name as a whole — by one of its faces.

Structs§

Body
A body of the model: a solid, or a sheet of faces standing on their own.
Circle
A circle or an arc of one: a circular edge, a sketch’s circle or arc.
Curve
A curve, whatever its shape, as a chain of one curve named after it and its ends: an edge — of a face or of a wire — a sketch’s curve.
Line
A line: a straight edge, a datum axis, a sketch’s line.
Path
Curves to run along, in order, as a chain named after what they are: an edge of a face, a sketch’s one chain or loop, a 3-D sketch’s.
Plane
A plane, as a frame with w its normal and u/v a sketch’s x/y on it: a flat face, a datum plane, a sketch’s plane.
Point
A point: a vertex, a datum point, a sketch’s point.
Round
The axis something turns around: a circular edge, a face of revolution — a cylinder, a cone — a sketch’s circle or arc.

Enums§

PathRef
Curves a sweep runs along, a rail or a guide follows, or a pattern lays its instances along: a sketch’s or a 3-D sketch’s one chain of curves, or one loop, or an edge of a face.

Functions§

frame_along
A right-handed orthonormal frame at origin with w along normal, and u the world axis most parallel to the plane normal to it, projected into that plane (see Vector3::across) — so frames with parallel normals line up, and a frame put on an axis has u where a joint measures its turns from: two bodies mated on the same axis of each are at a turn of zero.
resolve_bodies
The bodies bodies refer to, each once, in the order picked. None picked is refused.