Expand description
Constructors for basic B-rep solids and shapes.
Re-exports§
pub use cube::cube_solid;
Modules§
- common
- Shared geometry helpers for the constructors in this crate, and
Profile, the named curve chain extrude and revolve sweep. Topology construction itself goes straight throughPart’s euler operators (mvfs,mve,mef,mer,replace_face, …) — seeextrude.rsfor a worked example of how they compose. - cube
- An axis-aligned box, built by
extrude-ing its bottom face straight up — no vertex/edge is ever duplicated then welded, sinceextrudeshares every side wall’s edges with its top/bottom caps by construction (see its own module docs). - cylinder
- A capped circular cylinder, built two different ways:
revolved_cylinder(via [revolve_at], an exact circular cross-section) andextruded_cylinder(viaextrude, ann-gon approximating one). - extrude
- Extrude a closed planar profile — an outer loop plus any number of holes,
each a closed chain of NURBS curves in the
(u, v)plane of a coordinate system — one unit along itswto produce a solid, entirely from euler operations. - figure8_
profile - A “figure-8” / dumbbell solid with two rectangular holes running all the way through it.
- revolve
- Revolve a planar profile, given as
(r, z)points in the half-plane `r - sphere
- A sphere as exactly 8 octant faces: 2 rows (north pole to equator, and
equator to south pole) x 4 quadrants, each an exact rational quarter of a
hemisphere. No approximation — the surfaces are spheres, so a point
sampled anywhere on one is exactly
radiusfrom the centre.