Polyhedron Primitive

From K-3D

Jump to: navigation, search

Description

Polyhedron primitives in K-3D use polygonal faces to define a surface or volume:

  • Polyhedron - At the top-level, the polyhedron acts as a container for zero-to-many shells.
    • Shells - A shell is a container for zero-to-many faces. The first shell in a polyhedron defines its surface / outer volume. Additional shells, if any, represent voids in the polyhedron volume.
      • Faces - A face is defined by zero-to-many loops. Users can select individual faces, and Materials are assigned on a per-face basis.
        • Loops - A loop is a singly-linked list of edges that form a closed loop. The first loop in a face defines its outer boundary. Additional loops, if any, represent holes in the face.
          • Edges - The edges in a loop are "split edges" that store a reference to the next edge in clockwise order. Users can select individual edges.
          • Vertices - A loop vertex stores a reference to a shared mesh point. Users can select individual vertices.


Data Structure