Documentation of 'smile.plot.Wireframe' Java class
Wireframe
smile.plot

Class 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.
    • 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: Shape
        Draw the component with given graphics object.
        Specified by:
        paint in class Shape
      • 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

You see the box below because you did not login.