Skip to main content

Module build

Module build 

Source
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§

BodySpec
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.
BuiltBody
The ids Model::build_body gave what a BodySpec describes, index for index.
CoedgeSpec
One coedge of a loop, in the order the loop runs, with its pcurve on the loop’s face.
EdgeSpec
An edge: its curve, running from vertex start to vertex end.
FaceSpec
A face: its surface, bounded by its outer loop and with its holes.
SpecSources
Where each entity of a BodySpec made by Model::body_spec came from, index for index.

Enums§

CoedgeOn
What a CoedgeSpec runs along: an edge, in a sense, or — a degenerate coedge, see CoedgeGeometry::Vertex — a single vertex.

Type Aliases§

FacesAround
The faces around a vertex of a BodySpec, each once, with where the vertex is on the face’s surface (see BodySpec::vertex_faces).