shapelib
Class Cylinder_IPAGeom

java.lang.Object
  |
  +--IndexedPolygonArrayGeom
        |
        +--shapelib.Cylinder_IPAGeom

public class Cylinder_IPAGeom
extends IndexedPolygonArrayGeom

A cylinder as an indexed polygon array. It may have end caps. (This is a closed surface with unique verticies.)

See Also:
Serialized Form

Constructor Summary
Cylinder_IPAGeom(int n, float radius, float height)
          Make a cylinder
Cylinder_IPAGeom(int n, float radius, float height, boolean bBottom, boolean bSide, boolean bTop)
          Make a cylinder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cylinder_IPAGeom

public Cylinder_IPAGeom(int n,
                        float radius,
                        float height)
Make a cylinder

Parameters:
n - Number of faces around circle
radius - The radius
height - The height

Cylinder_IPAGeom

public Cylinder_IPAGeom(int n,
                        float radius,
                        float height,
                        boolean bBottom,
                        boolean bSide,
                        boolean bTop)
Make a cylinder

Parameters:
n - Number of faces around circle
radius - The radius
height - The height
bBottom - Give it a bottom cap
bTop - Give it a top cap