Package smile.plot.swing
Class Wireframe
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
smile.plot.swing.Wireframe
A wire frame model specifies each edge of the physical object where two
mathematically continuous smooth surfaces meet, or by connecting an
object's constituent vertices using straight lines or curves.
-
Constructor Details
-
Wireframe
Constructor.- Parameters:
vertices- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges- an m-by-2 array of which each row is the vertex indices of two end points of each edge.
-
-
Method Details
-
getLowerBound
public double[] getLowerBound()Description copied from class:PlotReturns the lower bound of data.- Specified by:
getLowerBoundin classPlot
-
getUpperBound
public double[] getUpperBound()Description copied from class:PlotReturns the upper bound of data.- Specified by:
getUpperBoundin classPlot
-
paint
Description copied from class:ShapeDraws the shape. -
of
Constructor.- Parameters:
vertices- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges- an m-by-2 array of which each row is the vertex indices of two end points of each edge.
-