public abstract class SphericalDrawing<X extends Point_> extends GraphDrawing<X>
Modifier and Type | Field and Description |
---|---|
(package private) static int |
step |
g, points
Constructor and Description |
---|
SphericalDrawing() |
Modifier and Type | Method and Description |
---|---|
void |
draw2D()
draw the graph in a 2D frame
|
void |
draw3D()
Draw the graph on the sphere using geodesic arcs (it uses Java3D and class MeshViewer)
Geodesic arcs are represented by polylines: every edge in the input
skeleton is subdivided into step+1 segments
|
private Point_3 |
linearInterpolation(Point_3 a,
Point_3 b,
double t)
Compute the linear interpolation of two points.
|
protected Point_3 |
projectOnSphere(Point_3 p)
Project a 3D point on the unit sphere.
|
computeDrawing, dimension, getPoint, getPoint2, toString
public void draw2D()
draw2D
in class GraphDrawing<X extends Point_>
private Point_3 linearInterpolation(Point_3 a, Point_3 b, double t)
protected Point_3 projectOnSphere(Point_3 p)
p
- the point to projectpublic void draw3D()
draw3D
in class GraphDrawing<X extends Point_>