Expand description
§Objects of a shape
Objects, in Fornjot parlance, are the elements that make up shapes. Objects can reference each other, forming a directed acyclic graph (DAG).
There are two top-level objects (Sketch
and Solid
) which represent
whole shapes (2D and 3D, respectively), while all other objects are
referenced (directly or indirectly) by these top-level objects.
All objects are stored in centralized storage (see Objects
) and referred
to through a Handle
.
Structs§
- Implementation of
Form
for objects that are about to be stored - Implementation of
Form
for bare objects - A curve
- A cycle of connected edges
- A face of a shape
- A directed half-edge, defined in a surface’s 2D space
- An ordered set of objects
- The available object stores
- A single, continuous 2d region, may contain holes
- A 3-dimensional closed shell
- A 2-dimensional shape
- A 3-dimensional shape, built from
Shell
s. Many Solids will contains only one shell, but if the Solid contains cavities they will be represented by a shell each, as well as a shell for the outside. - Implementation of
Form
for stored objects - A two-dimensional shape
- Store for
Surface
s - A vertex that identifies a point in space
Enums§
- An enum that can hold any object
- The handedness of a face’s coordinate system
Traits§
- The form that an object can take
- A trait implemented for all object types