public class DrawPolyhedronProcessing extends DrawMesh
Modifier and Type | Field and Description |
---|---|
float[][] |
edgeColors |
Polyhedron_3<Point_3> |
polyhedron3D |
java.util.Collection<Triangle_3> |
triangleSoup |
float[][] |
vertexNormals |
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,
Polyhedron_3<Point_3> polyhedron3D,
float[][] edgeColors)
Create a surface mesh from a 3D polyhedron (3D surface mesh)
|
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 |
decreaseZoomFactor()
Decrease the zoom factor by a factor 2
|
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 |
drawNormal(Point_3 p,
float[] normal)
Draw the vertex normal
|
void |
drawSegment(Point_3 p,
Point_3 q)
Draw a segment between two points
|
void |
drawSegment(Point_3 p,
Point_3 q,
float[] color)
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 |
increaseZoomFactor()
Increase the zoom factor by factor 2
|
void |
updateScaleFactor()
Update the scale factor
|
computeBoundingBox, drawAxis, drawBoundingBox, round
public Polyhedron_3<Point_3> polyhedron3D
public java.util.Collection<Triangle_3> triangleSoup
public float[][] edgeColors
public float[][] vertexNormals
public DrawPolyhedronProcessing(MeshViewerProcessing view, java.lang.String filename)
public DrawPolyhedronProcessing(MeshViewerProcessing view, Polyhedron_3<Point_3> polyhedron3D, float[][] edgeColors)
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 drawNormal(Point_3 p, float[] normal)
public void drawSegment(Point_3 p, Point_3 q, float[] color)
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()
public void increaseZoomFactor()
public void decreaseZoomFactor()