Package rope.costume

Class R_Icosahedron

All Implemented Interfaces:
R_Constants, R_Constants_Colour

public class R_Icosahedron extends R_Shape
  • Constructor Details

    • R_Icosahedron

      public R_Icosahedron(processing.core.PApplet pa, float radius)
  • Method Details

    • update

      public void update()
      update your shape, very importante in case you change the size of shape.
    • type

      public void type(int type)
      Parameters:
      type - Choice the type of display VERTEX, POINT or LINE
    • show

      public void show()
    • get_normals

      public ArrayList<vec3> get_normals()
      Returns:
      an ArrayList of type vec3 of the normal direction of each faces of the shape
    • get_faces

      public ArrayList<R_Face> get_faces()
      Returns:
      an ArrayList of type R_Face of the shape
    • get_faces_normal

      public ArrayList<R_Face> get_faces_normal()
      Returns:
      an ArrayList of type R_Face of the shape with normalize size between -1,1
    • get_ref_points

      public vec3[] get_ref_points()
      Overrides:
      get_ref_points in class R_Shape
      Returns:
      an Array of points in vec3 coord, it's a normalize point
    • get_points

      public vec3[] get_points()
      Overrides:
      get_points in class R_Shape
      Returns:
      an Array of points in vec3 coord