Expand description
Building a whole body at once from a description of it (BodySpec),
and describing part of a model the same way (Model::body_spec).
A sweep comes in many shapes (one or several spans, closed around an
axis or not, with poles, holes, caps or none). Grown one entity at a
time, each would need its own sequence of steps, each keeping the model
valid. A sweep is far simpler said whole: these vertices, these edges
between them, these faces, each bounded by these coedges.
Model::build_body takes exactly that, checks it is topologically
consistent, and only then inserts it. A description without faces is a
Wire: edges and vertices standing on their own.
Structs§
- Body
Spec - A body to build, its entities referring to each other by their index in
the lists here: a solid, a sheet, or — with no faces — a wire. It
serializes exactly (see
geop_core_math::exact): a body kept to be built again is the body that was described. - Built
Body - The ids
Model::build_bodygave what aBodySpecdescribes, index for index. - Coedge
Spec - One coedge of a loop, in the order the loop runs, with its pcurve on the loop’s face.
- Edge
Spec - An edge: its curve, running from vertex
startto vertexend. - Face
Spec - A face: its surface, bounded by its
outerloop and with itsholes. - Spec
Sources - Where each entity of a
BodySpecmade byModel::body_speccame from, index for index.
Enums§
- Coedge
On - What a
CoedgeSpecruns along: an edge, in a sense, or — a degenerate coedge, seeCoedgeGeometry::Vertex— a single vertex.
Type Aliases§
- Faces
Around - The faces around a vertex of a
BodySpec, each once, with where the vertex is on the face’s surface (seeBodySpec::vertex_faces).