de.grogra.imp3d
public abstract class VolumeBuilderBase extends java.lang.Object
VolumeBuilderBase is used to build volumes.#VolumeBuilder| Modifier and Type | Field and Description |
|---|---|
float |
epsilon |
protected PolygonizationCache |
polyCache |
| Constructor and Description |
|---|
VolumeBuilderBase(PolygonizationCache polyCache,
float epsilon) |
| Modifier and Type | Method and Description |
|---|---|
FrustumBase |
buildBaseFrustum(float height,
float baseRadius,
float topRadius,
boolean baseClosed,
boolean topClosed,
float scaleV,
Matrix4d t) |
Cube |
buildBox(float halfWidth,
float halfLength,
float height,
Matrix4d t) |
Frustum |
buildFrustum(float height,
float baseRadius,
float topRadius,
boolean baseClosed,
boolean topClosed,
float scaleV,
Matrix4d t) |
Lamella |
buildLamella(float halfWidth,
float halfLength,
float height,
float a,
float b,
Matrix4d t) |
Square |
buildParallelogram(float axis,
Vector3f secondAxis,
float scaleU,
float scaleV,
Matrix4d t) |
HalfSpace |
buildPlane(Matrix4d t) |
MeshVolume |
buildPolygons(Polygonizable pz,
java.lang.Object obj,
boolean asNode,
Matrix4d t) |
Sphere |
buildSphere(float radius,
Matrix4d t) |
Supershape |
buildSupershape(float a,
float b,
float m1,
float n11,
float n12,
float n13,
float m2,
float n21,
float n22,
float n23,
Matrix4d t) |
protected abstract Matrix4d |
getCurrentTransformation() |
protected Matrix4d |
getTransformation(Matrix4d t) |
void |
setInvTransformation(TransformableVolume v,
Matrix4d t,
double dz) |
public final float epsilon
protected PolygonizationCache polyCache
public VolumeBuilderBase(PolygonizationCache polyCache, float epsilon)
public FrustumBase buildBaseFrustum(float height, float baseRadius, float topRadius, boolean baseClosed, boolean topClosed, float scaleV, Matrix4d t)
public Frustum buildFrustum(float height, float baseRadius, float topRadius, boolean baseClosed, boolean topClosed, float scaleV, Matrix4d t)
public Lamella buildLamella(float halfWidth, float halfLength, float height, float a, float b, Matrix4d t)
public Square buildParallelogram(float axis, Vector3f secondAxis, float scaleU, float scaleV, Matrix4d t)
public MeshVolume buildPolygons(Polygonizable pz, java.lang.Object obj, boolean asNode, Matrix4d t)
public Supershape buildSupershape(float a, float b, float m1, float n11, float n12, float n13, float m2, float n21, float n22, float n23, Matrix4d t)
protected abstract Matrix4d getCurrentTransformation()
public void setInvTransformation(TransformableVolume v, Matrix4d t, double dz)