fileconvert
Class basicshapes

java.lang.Object
  |
  +--fileconvert.basicshapes

public class basicshapes
extends java.lang.Object

This class acts as a helper and provides primitive object shapes in Info3d form


Constructor Summary
basicshapes()
          Creates new basicshapes
 
Method Summary
 Info3d cone(Info3d info, coord c)
          Adds an Info3d cone
 Info3d cube(Info3d info, coord c)
          Adds an Info3d cube
 Info3d cylinder(Info3d info, coord c)
          Adds an Info3d cylinder
 Info3d sphere(Info3d info, float r)
          Adds an Info3d sphere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

basicshapes

public basicshapes()
Creates new basicshapes
Method Detail

cone

public Info3d cone(Info3d info,
                   coord c)
Adds an Info3d cone
Parameters:
info - The info to which the cone will be added
c - c.x is radius and c.y is height of cone
Returns:
The resultant info

cylinder

public Info3d cylinder(Info3d info,
                       coord c)
Adds an Info3d cylinder
Parameters:
info - The info to which the cylinder will be added
c - c.x is radius and c.y is height of cylinder
Returns:
the resultant info

sphere

public Info3d sphere(Info3d info,
                     float r)
Adds an Info3d sphere
Parameters:
info - The info to which the sphere will be added
r - The radius of the sphere
Returns:
The resultant info

cube

public Info3d cube(Info3d info,
                   coord c)
Adds an Info3d cube
Parameters:
info - The info to which the cube will be added
c - c.x is width, c.y is height and c.z is depth of cube
Returns:
the resultant info