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 Vector3f[] |
transformBevel(Vector3f[] bevel,
Vector3f prevPos,
Vector3f currPos,
Vector3f nextPos)
The method transforms the bevel along the curve.
|
protected Vector3f[] |
transformToFirstLineOfBevelPoints(Vector3f[] startingLinePoints,
Vector3f firstCurvePoint,
Vector3f secondCurvePoint)
This method transforms the first line of the bevel points positioning it
on the first point of the curve.
|
applyProperties, loadLibrary, loadProperties
protected 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
BlenderFileException
protected Vector3f[] transformBevel(Vector3f[] bevel, Vector3f prevPos, Vector3f currPos, 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 Vector3f[] transformToFirstLineOfBevelPoints(Vector3f[] startingLinePoints, Vector3f firstCurvePoint, Vector3f secondCurvePoint)
startingLinePoints
- the vbevel shape pointsfirstCurvePoint
- the first curve's pointsecondCurvePoint
- the second curve's point