anar

Class Sphere

java.lang.Object
  extended by anar.Parametric
      extended by anar.Obj
          extended by anar.Platonic
              extended by anar.Sphere
All Implemented Interfaces:
iTaggable, iTransformable

public class Sphere
extends Platonic


Field Summary
 
Fields inherited from class anar.Platonic
DODECAHEDRON, GEODESIC_1, GEODESIC_2, ICOSAHEDRON, OCTAHEDRON, p5, SOCCER, SPHERE, TETRAHEDRON
 
Fields inherited from class anar.Obj
faces, globalRender, lines, pts, render
 
Fields inherited from class anar.Parametric
meta
 
Constructor Summary
Sphere(Pt origin, Param radius)
           
Sphere(Pt a, Pt b, Pt c, Pt d)
           
Sphere(Pts thetrahedron)
          Only first four points are used to define the sphere.
 
Method Summary
 
Methods inherited from class anar.Obj
add, add, add, add, addAllFaces, addAllPt, addAllPts, allPts, apply, area, area, bound, boundCenter, copy, draw, exportANSYS, exportANSYS, exportAutolisp, exportAutolisp, exportOBJ, exportOBJ, exportPovRAY, exportPovRAY, exportRadiance, exportRadiance, exportRhino, exportRhino, exportSketchUp, exportSketchUp, face, face, faceEnd, faceEnd, faceMod, fill, fill, fill, fill, fill, fill, fillP5, getFace, getLine, getPt, line, line, lineEnd, lineEnd, lineMod, numOfFaces, numOfLines, numOfPts, orphaned, pt, ptEnd, ptEnd, ptMod, removeFace, removeFace, removePt, removePt, removePts, removePts, render, render, render, render, rotateX, rotateX, rotateY, rotateY, rotateZ, rotateZ, scale, scale, scale, scale, scale, scale, scale, scale, scaleX, scaleX, scaleY, scaleY, scaleZ, scaleZ, set, set, set, setMeta, tag, tag, toANSYS, toAutocad, toAutocad, toObjExporter, toObjExporter, toObjExporter, toObjExporter, toPovRay, toPovRay, toRadiance, toRhino, toRhino, toSketchUp, toSketchUp, toString, translate, translate, translate, translate, translate, translate, translateX, translateX, translateY, translateY, translateZ, translateZ, triangulate
 
Methods inherited from class anar.Parametric
child, get, getMeta, getPrimitive, parent, parent, parentList, parentList, parentList, parentListGraphViz, parentListGraphViz, parentListRecursive, parentListRecursiveGraphViz, parentToString, parentToStringRecursive, parentToStringRecursive, primitiveToString, replaceParent, replaceParent, replicate, tag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sphere

public Sphere(Pt origin,
              Param radius)
Parameters:
origin -
radius - of the sphere

Sphere

public Sphere(Pt a,
              Pt b,
              Pt c,
              Pt d)
Parameters:
a - - Thetrahedron.pt(0)
b - - Thetrahedron.pt(1)
c - - Thetrahedron.pt(2)
d - - Thetrahedron.pt(3)

Sphere

public Sphere(Pts thetrahedron)
Only first four points are used to define the sphere.

Parameters:
thetrahedron - - or any Regular Polyhedron