|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.AxisAlignedCylinder
public abstract class AxisAlignedCylinder
Method Summary | |
---|---|
abstract boolean |
containsPoint(ReadonlyVec3D p)
Checks if the given point is inside the cylinder. |
float |
getLength()
|
abstract Vec3D.Axis |
getMajorAxis()
|
Vec3D |
getPosition()
Returns the cylinder's position (centroid). |
float |
getRadius()
|
void |
setLength(float length)
|
void |
setPosition(Vec3D pos)
|
void |
setRadius(float radius)
|
Mesh3D |
toMesh()
Builds a TriangleMesh representation of the cylinder at a default resolution 30 degrees. |
Mesh3D |
toMesh(int steps,
float thetaOffset)
Builds a TriangleMesh representation of the cylinder using the given number of steps and start angle offset. |
Mesh3D |
toMesh(Mesh3D mesh,
int steps,
float thetaOffset)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract boolean containsPoint(ReadonlyVec3D p)
containsPoint
in interface Shape3D
p
-
public float getLength()
public abstract Vec3D.Axis getMajorAxis()
public Vec3D getPosition()
public float getRadius()
public void setLength(float length)
length
- the length to setpublic void setPosition(Vec3D pos)
pos
- the pos to setpublic void setRadius(float radius)
radius
- public Mesh3D toMesh()
public Mesh3D toMesh(int steps, float thetaOffset)
steps
- thetaOffset
-
public Mesh3D toMesh(Mesh3D mesh, int steps, float thetaOffset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |