105 3D: Polygonal faces
3D reference map · First 3D picture
struct
(struct polyhedral-plane3d (normal offset) #:transparent) normal : vec3? offset : finite-real?
struct
(struct polyhedral-source-face-id3d (triangle-index) #:transparent) triangle-index : exact-nonnegative-integer?
struct
(struct polyhedral-face-declaration3d (id triangle-indices) #:transparent) id : symbol? triangle-indices : (or/c vector? list?)
struct
(struct polyhedral-face3d ( id triangle-indices boundary-vertex-indices normal plane centroid area provenance) #:transparent) id : any/c triangle-indices : vector? boundary-vertex-indices : (or/c #f vector?) normal : (or/c #f vec3?) plane : (or/c #f polyhedral-plane3d?) centroid : (or/c #f vec3?) area : nonnegative-real? provenance : hash?
procedure
(polyhedral-complex3d mesh [ #:faces faces #:coplanar-angle angle #:plane-distance distance]) → polyhedral-complex3d? mesh : mesh3d? faces : any/c = #f angle : nonnegative-real? = 1e-7 distance : nonnegative-real? = 1e-7
procedure
(polyhedral-complex3d? value) → boolean?
value : any/c
procedure
(polyhedral-complex3d-source-mesh complex) → mesh3d?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-analysis-mesh complex) → mesh3d?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-source-transform complex) → transform3?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-mesh complex) → mesh3d?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-topology complex) → mesh-topology3d?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-faces complex) → vector?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-edge-to-faces complex) → vector?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-vertex-to-faces complex) → vector?
complex : polyhedral-complex3d?
procedure
(polyhedral-complex3d-diagnostics complex) → hash?
complex : polyhedral-complex3d?
Limitations. Polygonal-face construction groups only existing triangles; it neither repairs nonmanifold/self-intersecting input nor creates a polygonal approximation. A region with holes is retained and diagnosed, but does not yet expose a usable multi-loop polygon. This constructor does not triangulate holes, construct duals, Schlegel diagrams or nets, or create face-transform animations.