Open Search
    ConvexHullData Struct Reference

    #include <convexhull.h>

    Detailed Description

    ConvexHullData struct is a datacontainer that represents a convex hull.

    Public Member Functions

     MAXON_OPERATOR_STRUCT (ConvexHullData, vertices, edges, faces)
     

    Public Attributes

    BaseArray< Vectorvertices
     
    BaseArray< ConvEdgeedges
     
    BaseArray< Intfaces
     

    Member Function Documentation

    ◆ MAXON_OPERATOR_STRUCT()

    MAXON_OPERATOR_STRUCT ( ConvexHullData  ,
    vertices  ,
    edges  ,
    faces   
    )

    Member Data Documentation

    ◆ vertices

    BaseArray<Vector> vertices

    Vertex coordinates of the convex hull.

    ◆ edges

    Edges of the convex hull. For each edge there's also the reverse edge in the array.

    ◆ faces

    BaseArray<Int> faces

    Faces of the convex hull. Each entry is an index into the "edges" array pointing to an edge of the face. Faces are planar n-gons.