public class PlanarLayout
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
AdjacencyListGraph |
g
Input graph to draw: no combinatorial embedding provided (only the 1-skeleton of the graph)
|
Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> |
mesh
input mesh to draw: a graph provided with its combinatorial embedding
|
int |
n
number of vertices of the graph
|
Jcg.geometry.Point_2[] |
points
2D positions of the vertices of the graph defining the planar layout.
|
Constructor and Description |
---|
PlanarLayout(AdjacencyListGraph g)
Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0)
|
PlanarLayout(Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> mesh)
Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0)
|
Modifier and Type | Method and Description |
---|---|
void |
printCoordinates() |
public int n
public AdjacencyListGraph g
public Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> mesh
public Jcg.geometry.Point_2[] points
public PlanarLayout(Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> mesh)
mesh
- the input graph+its combinatorial embeddingpublic PlanarLayout(AdjacencyListGraph g)
graph
- the input graph (no combinatorial embedding provided)