Class SharedVertexRepresentation

java.lang.Object
Jcg.mesh.SharedVertexRepresentation

public class SharedVertexRepresentation extends Object
A vertex shared representation of a mesh. For each face we store the indices of the incident vertices
Author:
Luca Castelli Aleardi (INF562-INF555, 2012-2025)
  • Field Details

    • sizeVertices

      public int sizeVertices
    • sizeFaces

      public int sizeFaces
    • sizeHalfedges

      public int sizeHalfedges
    • faces

      public int[][] faces
    • faceDegrees

      public int[] faceDegrees
    • points

      public Point_3[] points
    • faceColors

      public Color[] faceColors
  • Constructor Details

    • SharedVertexRepresentation

      public SharedVertexRepresentation(int n, int f, int he, int[][] faces, int[] faceDegrees, Point_3[] points)
      Create a shared vertex representation
      Parameters:
      n - number of vertices
      f - number of faces
      he - number of half-edges
      points - vertex coordinates (3D)
    • SharedVertexRepresentation

      public SharedVertexRepresentation(Collection<Triangle_3> faces)
      Create a shared vertex representation from a collection of 3D triangles
    • SharedVertexRepresentation

      public SharedVertexRepresentation(String filename)
      Create a mesh representation from an OFF file (using TC library)
    • SharedVertexRepresentation

      public SharedVertexRepresentation(String filename, boolean minimal)
      Create a minimal triangle mesh representation from an OFF file (using TC library): no colors, no vertex coordinates
    • SharedVertexRepresentation

      public SharedVertexRepresentation(TriangulationDS_2<Point_3> mesh)
      Create a mesh representation from a polyhedron (half-edge data structure)
    • SharedVertexRepresentation

      public SharedVertexRepresentation(Polyhedron_3<Point_3> polyhedron)
      Create a shared vertex representation from a polyhedron (half-edge data structure)
  • Method Details