public class CurvesHelper extends AbstractBlenderHelper
| Modifier and Type | Field and Description |
|---|---|
protected int |
minimumBasisUFunctionDegree
Minimum basis U function degree for NURBS curves and surfaces.
|
protected int |
minimumBasisVFunctionDegree
Minimum basis V function degree for NURBS curves and surfaces.
|
blenderContext, blenderVersion, fixUpAxis, upAxisRotationQuaternion| Constructor and Description |
|---|
CurvesHelper(java.lang.String blenderVersion,
BlenderContext blenderContext)
This constructor parses the given blender version and stores the result.
|
| Modifier and Type | Method and Description |
|---|---|
CurvesTemporalMesh |
toCurve(Structure curveStructure,
BlenderContext blenderContext) |
protected com.jme3.math.Vector3f[] |
transformBevel(com.jme3.math.Vector3f[] bevel,
com.jme3.math.Vector3f prevPos,
com.jme3.math.Vector3f currPos,
com.jme3.math.Vector3f nextPos)
The method transforms the bevel along the curve.
|
protected com.jme3.math.Vector3f[] |
transformToFirstLineOfBevelPoints(com.jme3.math.Vector3f[] startingLinePoints,
com.jme3.math.Vector3f firstCurvePoint,
com.jme3.math.Vector3f secondCurvePoint)
This method transforms the first line of the bevel points positioning it
on the first point of the curve.
|
applyProperties, loadLibrary, loadPropertiesprotected int minimumBasisUFunctionDegree
protected int minimumBasisVFunctionDegree
public CurvesHelper(java.lang.String blenderVersion,
BlenderContext blenderContext)
blenderVersion - the version read from the blend fileblenderContext - the blender contextpublic CurvesTemporalMesh toCurve(Structure curveStructure, BlenderContext blenderContext) throws BlenderFileException
BlenderFileExceptionprotected com.jme3.math.Vector3f[] transformBevel(com.jme3.math.Vector3f[] bevel,
com.jme3.math.Vector3f prevPos,
com.jme3.math.Vector3f currPos,
com.jme3.math.Vector3f nextPos)
bevel - the bevel to be transformedprevPos - previous curve pointcurrPos - current curve point (here the center of the new bevel will be
set)nextPos - next curve pointprotected com.jme3.math.Vector3f[] transformToFirstLineOfBevelPoints(com.jme3.math.Vector3f[] startingLinePoints,
com.jme3.math.Vector3f firstCurvePoint,
com.jme3.math.Vector3f secondCurvePoint)
startingLinePoints - the vbevel shape pointsfirstCurvePoint - the first curve's pointsecondCurvePoint - the second curve's point