|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISplineGenerator
Nested Class Summary | |
---|---|
static class |
ISplineGenerator.curvature
defines wheter curvature should be incresed or decreased. |
Method Summary | |
---|---|
BezierSpline |
generateShortSpline(KVector q,
KVector s)
Generates a spline representation for straight edges. |
BezierSpline |
generateSpline(LinkedList<KVector> pArray)
generates a simple piecewise bezier curve for given points. |
BezierSpline |
generateSpline(LinkedList<KVector> pArray,
KVector vectorQ,
KVector vectorS)
generates a simple piecewise bezier curve for given points. |
boolean |
refineSpline(LinkedList<KVector> pArray,
BezierSpline ospline,
ISplineGenerator.curvature mode)
perturb the control points of the spline in an attempt to make the spline fit. |
boolean |
straightenSpline(BezierSpline spline)
straighten_spline adjusts the control points of the spline to reduce the curvature. |
Method Detail |
---|
BezierSpline generateSpline(LinkedList<KVector> pArray, KVector vectorQ, KVector vectorS)
pArray
- array with points which should be lay on the splinevectorQ
- outgoing tangent vector of the initial nodevectorS
- incoming tangent vector of the final node
BezierSpline generateSpline(LinkedList<KVector> pArray)
pArray
- array with points which should be lay on the spline
BezierSpline generateShortSpline(KVector q, KVector s)
q
- start points
- end point
boolean straightenSpline(BezierSpline spline)
spline
- spline to be straightened
boolean refineSpline(LinkedList<KVector> pArray, BezierSpline ospline, ISplineGenerator.curvature mode)
pArray
- array with points which should be lay on the splineospline
- spline to be refinedmode
- either decrease or increase the curvature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |