net.sourceforge.arbaro.tree
Interface StemSection
public interface StemSection
A stem seen from outside is made from several
section, each consisting of a circle of section points.
A mesh generator can iterate over the stem sections
creating a vertex for each section point and connecting
adjacent sections with faces (triangles or quads)
- Author:
- wolfram
getPosition
Vector getPosition()
- Returns:
- the midpoint of the section
getRadius
double getRadius()
- Returns:
- the radius of the section (point distance from
midpoint can vary when lobes are used)
getDistance
double getDistance()
- Returns:
- relative distance from stem origin
getTransformation
Transformation getTransformation()
- Returns:
- the transformation for the section, giving it's
position vector and rotation matrix
getZ
Vector getZ()
- Returns:
- the z-direction vector, it is orthogonal to the
section layer
getSectionPoints
Vector[] getSectionPoints()
- Returns:
- the vertex points of the section. It's number
is influenced by the stem level and smooth value. It's distance
from midpoint can vary about the radius (when lobes are used).