public class FractalStructure
extends java.lang.Object
Constructor and Description |
---|
FractalStructure(eu.mihosoft.vvecmath.Vector3d groundCenter,
eu.mihosoft.vvecmath.Vector3d topCenter,
int numberOfGroundEdges,
double thickness,
int level,
eu.mihosoft.vvecmath.Vector3d orthoVecToRotAxis1,
eu.mihosoft.vvecmath.Vector3d orthoVecToRotAxis2)
EXAMPLE:
FractalStructure(Vector3d.ZERO, Vector3d.Z_ONE.times(2), 6, 1, 0) creates a tube with a
top and botton polygon consist of 6 point, a length of 2.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
CSG |
toCSG() |
public FractalStructure(eu.mihosoft.vvecmath.Vector3d groundCenter, eu.mihosoft.vvecmath.Vector3d topCenter, int numberOfGroundEdges, double thickness, int level, eu.mihosoft.vvecmath.Vector3d orthoVecToRotAxis1, eu.mihosoft.vvecmath.Vector3d orthoVecToRotAxis2)
groundCenter
- the center point of the bottom polygontopCenter
- the center point of the top polygonnumberOfGroundEdges
- number which defines polygon should be created (circle divided in N equal parts)thickness
- the distance between the center and all edge points of the bottom and/or top polygonlevel
- is the number which defines how many recursion should be doneorthoVecToRotAxis1
- is an orthogonal vector to the roation axis (connection line between
groundCenter and topCenter) and normalized, null is validorthoVecToRotAxis2
- is an orthogonal vector to the roation axis (connection line between
groundCenter and topCenter) and the orthoVecToRotAxis1 vector and normalized, null is validpublic CSG toCSG()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException