public class DrawPolyhedronProcessing extends DrawMesh
Modifier and Type | Field and Description |
---|---|
Polyhedron_3<Point_3> |
polyhedron3D |
(package private) double |
scaleFactor |
java.util.Collection<Triangle_3> |
triangleSoup |
(package private) MeshViewerProcessing |
view |
NO_VERTICES_NO_EDGES, ONLY_EDGES, VERTICES_AND_EDGES
Constructor and Description |
---|
DrawPolyhedronProcessing(MeshViewerProcessing view,
java.util.Collection<Triangle_3> triangles)
Create a 3D triangle soup
|
DrawPolyhedronProcessing(MeshViewerProcessing view,
java.lang.String filename)
Create a surface mesh from an OFF file
|
Modifier and Type | Method and Description |
---|---|
double |
computeScaleFactor()
Compute the scale factor (depending on the max distance of the point set)
|
void |
draw(int type)
Draw the 3D scene
|
void |
drawFace(Face<Point_3> f)
Draw a (triangle or polygonal) face
|
void |
drawFace(Point_3[] f)
Draw a (triangle or polygonal) face
|
void |
drawMesh(int type)
Draw the entire mesh
|
void |
drawSegment(Point_3 p,
Point_3 q)
Draw a segment between two points
|
void |
drawTriangle(Point_3 p,
Point_3 q,
Point_3 r)
Draw a triangle
|
void |
drawTriangleSoup(int type)
Draw the triangle soup
|
void |
drawVertex(Point_3 p)
Draw a vertex (as a small sphere)
|
void |
updateScaleFactor()
Update the scale factor
|
computeBoundingBox, drawAxis, drawBoundingBox, round
double scaleFactor
MeshViewerProcessing view
public Polyhedron_3<Point_3> polyhedron3D
public java.util.Collection<Triangle_3> triangleSoup
public DrawPolyhedronProcessing(MeshViewerProcessing view, java.lang.String filename)
public DrawPolyhedronProcessing(MeshViewerProcessing view, java.util.Collection<Triangle_3> triangles)
public void drawSegment(Point_3 p, Point_3 q)
drawSegment
in class DrawSkeleton
public void drawVertex(Point_3 p)
drawVertex
in class DrawSkeleton
public void drawTriangle(Point_3 p, Point_3 q, Point_3 r)
drawTriangle
in class DrawMesh
public void drawFace(Point_3[] f)
public void drawMesh(int type)
public void drawTriangleSoup(int type)
public void draw(int type)
draw
in class DrawSkeleton
type
- indicates the rendering modepublic double computeScaleFactor()
public void updateScaleFactor()