Class QuadMesh3d

java.lang.Object
au.edu.unsw.cse.Object3dAdaptor
au.edu.unsw.cse.QuadMesh3d
All Implemented Interfaces:
Object3d
Direct Known Subclasses:
Bezier3d, Bspline3d

public class QuadMesh3d
extends Object3dAdaptor
  • Field Details

    • pts

      protected Point3d[][] pts
    • ci

      protected java.awt.Color ci
    • cj

      protected java.awt.Color cj
  • Constructor Details

    • QuadMesh3d

      public QuadMesh3d()
      Create a Quad mesh
    • QuadMesh3d

      public QuadMesh3d​(Point3d[][] pts)
      Create a Quad mesh, given controls
  • Method Details

    • setPoints

      public void setPoints​(Point3d[][] pts)
    • setColors

      public void setColors​(java.awt.Color ci, java.awt.Color cj)
    • render

      public void render​(View3d v)
      render the Mesh, given a 3D view
      Specified by:
      render in interface Object3d
      Overrides:
      render in class Object3dAdaptor
    • transform

      public void transform​(au.edu.unsw.cse.Matrix3D T)
      compute new position of pol
      Specified by:
      transform in interface Object3d
      Overrides:
      transform in class Object3dAdaptor
    • toVRML

      public java.lang.String toVRML()
      Turn into VRML