ProGAL.geom3d
Interface Shape

All Known Subinterfaces:
Simplex, Volume
All Known Implementing Classes:
Atom, CEdge, Circle, CoilSurface, Cone, CTetrahedron, CTriangle, CVertex, Cylinder, HelixSurface, Lens, LineSegment, LSS, OBB, ParametricParaboloid, ParametricPlane, ParametricSurface, Plane, Point, PointWeighted, RSS, Sphere, StrandSurface, Tetr, Tetrahedron, TextShape, Triangle

public interface Shape

An interface for 3d shapes such as spheres, but also flat objects such as rectangles and text.


Method Summary
 Point getCenter()
          Get the geometric center of the shape.
 

Method Detail

getCenter

Point getCenter()
Get the geometric center of the shape. The center of a shape can be interpreted in many ways (center of mass, circumcenter, inscribed center etc.). No strict requirement is given here, but typically the circumcenter should be supplied. This method is most prominently used to find the average center-position of a collection of shapes such that scene-viewers can be centered on the scene.