Class PolyhedronsSet.BRep

  • Enclosing class:
    PolyhedronsSet

    public static class PolyhedronsSet.BRep
    extends Object
    Container for Boundary REPresentation (B-Rep).

    The boundary is provided as a list of vertices and a list of facets. Each facet is specified as an integer array containing the arrays vertices indices in the vertices list. Each facet normal is oriented by right hand rule to the facet vertices list.

    Since:
    1.2
    See Also:
    PolyhedronsSet(BSPTree, double), PolyhedronsSet.getBRep()
    • Constructor Detail

      • BRep

        public BRep​(List<Vector3D> vertices,
                    List<int[]> facets)
        Simple constructor.
        Parameters:
        vertices - list of polyhedrons set vertices
        facets - list of facets, as vertices indices in the vertices list
    • Method Detail

      • getVertices

        public List<Vector3D> getVertices()
        Get the extracted vertices.
        Returns:
        extracted vertices
      • getFacets

        public List<int[]> getFacets()
        Get the extracted facets.
        Returns:
        extracted facets