Skip to main content

Crate geop_ops_extrude_revolve

Crate geop_ops_extrude_revolve 

Source
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 through Part’s euler operators (mvfs, mve, mef, mer, replace_face, …) — see extrude.rs for 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, since extrude shares 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) and extruded_cylinder (via extrude, an n-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 its w to 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 radius from the centre.