smile.plot
Class Wireframe
- java.lang.Object
-
- smile.plot.Shape
-
- smile.plot.Plot
-
- smile.plot.Wireframe
-
public class Wireframe extends Plot
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 Summary
Constructors Constructor and Description Wireframe(double[][] vertices, int[][] edges)Constructor.Wireframe(double[][] vertices, int[][] edges, java.awt.Color color)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpaint(Graphics g)Draw the component with given graphics object.static PlotCanvasplot(double[][] vertices, int[][] edges)Create a wire frame plot canvas.static PlotCanvasplot(java.lang.String id, double[][] vertices, int[][] edges)Create a 2D grid plot canvas.-
Methods inherited from class smile.plot.Plot
getID, getToolBar, getToolTip, setID
-
-
-
-
Constructor Detail
-
Wireframe
public Wireframe(double[][] vertices, int[][] edges)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.
-
Wireframe
public Wireframe(double[][] vertices, int[][] edges, java.awt.Color color)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 Detail
-
paint
public void paint(Graphics g)
Description copied from class:ShapeDraw the component with given graphics object.
-
plot
public static PlotCanvas plot(double[][] vertices, int[][] edges)
Create a wire frame plot canvas.- Parameters:
vertices- a n-by-2 or n-by-3 array which are coordinates of n vertices.
-
plot
public static PlotCanvas plot(java.lang.String id, double[][] vertices, int[][] edges)
Create a 2D grid plot canvas.- Parameters:
id- the id of the plot.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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG