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 Details

    • Wireframe

      public Wireframe(double[][] vertices, int[][] edges, Color color)
      Constructor.
      Parameters:
      vertices - an 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.
      color - the color of plot.
  • Method Details

    • getLowerBound

      public double[] getLowerBound()
      Description copied from class: Plot
      Returns the lower bound of data.
      Specified by:
      getLowerBound in class Plot
      Returns:
      the lower bound of data.
    • getUpperBound

      public double[] getUpperBound()
      Description copied from class: Plot
      Returns the upper bound of data.
      Specified by:
      getUpperBound in class Plot
      Returns:
      the upper bound of data.
    • paint

      public void paint(Renderer g)
      Description copied from class: Shape
      Draws the shape.
      Specified by:
      paint in class Shape
      Parameters:
      g - the renderer.
    • of

      public static Wireframe of(double[][] vertices, int[][] edges)
      Creates a wireframe plot.
      Parameters:
      vertices - an 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.
      Returns:
      the plot.