Interface Primitive

All Known Implementing Classes:
Box, Cube, Cylinder, Operation, Pgon, Polyhedron, RoundedCube, Sphere, StlPrim, Trap, Trd, Tube

public interface Primitive
A primitive geometry.
Author:
Michael Hoffer <info@michaelhoffer.de>
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Returns the property storage of this primitive.
    default CSG
    Returns this primitive as CSG.
    Returns the polygons that define this primitive.
  • Method Details Link icon

    • toPolygons Link icon

      List<Polygon> toPolygons()
      Returns the polygons that define this primitive. Note: this method computes the polygons each time this method is called. The polygons can be cached inside a CSG object.
      Returns:
      a list of polygons that define this primitive
    • toCSG Link icon

      default CSG toCSG()
      Returns this primitive as CSG.
      Returns:
      this primitive as CSG
    • getProperties Link icon

      PropertyStorage getProperties()
      Returns the property storage of this primitive.
      Returns:
      the property storage of this primitive