public abstract class DrawSkeleton
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
NO_VERTICES_NO_EDGES |
static int |
ONLY_EDGES |
static int |
VERTICES_AND_EDGES |
Constructor and Description |
---|
DrawSkeleton() |
Modifier and Type | Method and Description |
---|---|
Point_3[] |
computeBoundingBox()
Compute the scale factor (depending on the max distance of the point set)
|
abstract void |
draw(int type)
Draw the entire graph (or mesh)
|
void |
drawAxis()
Draw the X, Y and Z axis
|
void |
drawBoundingBox(Point_3[] box)
Draw the X, Y and Z axis
|
abstract void |
drawSegment(Point_3 p,
Point_3 q)
Draw a segment between two points
|
abstract void |
drawVertex(Point_3 p)
Draw a vertex
|
static double |
round(double x,
int precision)
Return the value after truncation
|
public static final int VERTICES_AND_EDGES
public static final int NO_VERTICES_NO_EDGES
public static final int ONLY_EDGES
public abstract void drawSegment(Point_3 p, Point_3 q)
public abstract void drawVertex(Point_3 p)
public abstract void draw(int type)
type
- indicates the rendering modepublic void drawAxis()
public void drawBoundingBox(Point_3[] box)
public static double round(double x, int precision)
public Point_3[] computeBoundingBox()