public class SharedVertexRepresentation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.awt.Color[] |
edgesColors |
java.awt.Color[] |
faceColors |
int[] |
faceDegrees |
int[][] |
faces |
Point_3[] |
points |
int |
sizeFaces |
int |
sizeHalfedges |
int |
sizeVertices |
Constructor and Description |
---|
SharedVertexRepresentation(java.util.Collection<Triangle_3> faces)
Create a shared vertex representation from a collection of 3D triangles
|
SharedVertexRepresentation(int n,
int f,
int he,
int[][] faces,
int[] faceDegrees,
Point_3[] points)
Create a shared vertex representation
|
SharedVertexRepresentation(Polyhedron_3<Point_3> polyhedron)
Create a shared vertex representation from a polyhedron (half-edge data structure)
|
SharedVertexRepresentation(java.lang.String filename)
Create a mesh representation from an off file (using TC library)
|
SharedVertexRepresentation(TriangulationDS_2<Point_3> mesh)
Create a mesh representation from a polyhedron (half-edge data structure)
|
Modifier and Type | Method and Description |
---|---|
void |
writeOffFile(java.lang.String filename)
Store the representation in OFF format
|
public int sizeVertices
public int sizeFaces
public int sizeHalfedges
public int[][] faces
public int[] faceDegrees
public Point_3[] points
public java.awt.Color[] faceColors
public java.awt.Color[] edgesColors
public SharedVertexRepresentation(int n, int f, int he, int[][] faces, int[] faceDegrees, Point_3[] points)
public SharedVertexRepresentation(java.util.Collection<Triangle_3> faces)
public SharedVertexRepresentation(java.lang.String filename)
public SharedVertexRepresentation(TriangulationDS_2<Point_3> mesh)
public SharedVertexRepresentation(Polyhedron_3<Point_3> polyhedron)