|
Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Builds a path from a Bezier-Curve. More...
#include <ProceduralPathGenerators.h>

Public Member Functions | |
| BezierCurve3 () | |
| Default constructor. More... | |
| BezierCurve3 & | setNumSeg (unsigned int numSeg) |
| Sets number of segments per two control points. More... | |
| BezierCurve3 & | addPoint (const Ogre::Vector3 &pt) |
| Adds a control point. More... | |
| BezierCurve3 & | addPoint (Ogre::Real x, Ogre::Real y, Ogre::Real z) |
| Adds a control point. More... | |
| const Ogre::Vector3 & | safeGetPoint (unsigned int i) const |
| Safely gets a control point. More... | |
| const size_t | getPointCount () const |
| Gets the number of control points. More... | |
| Path | realizePath () |
| Build a path from bezier control points. More... | |
| BezierCurve3 & | close () |
| Closes the spline. More... | |
Protected Attributes | |
| bool | mClosed |
| Tells if the spline is closed or not. More... | |
Builds a path from a Bezier-Curve.
| Procedural::BezierCurve3::BezierCurve3 | ( | ) |
Default constructor.
| BezierCurve3& Procedural::BezierCurve3::addPoint | ( | const Ogre::Vector3 & | pt | ) |
Adds a control point.
| BezierCurve3& Procedural::BezierCurve3::addPoint | ( | Ogre::Real | x, |
| Ogre::Real | y, | ||
| Ogre::Real | z | ||
| ) |
Adds a control point.
|
inherited |
Closes the spline.
| const size_t Procedural::BezierCurve3::getPointCount | ( | ) | const |
Gets the number of control points.
| Path Procedural::BezierCurve3::realizePath | ( | ) |
Build a path from bezier control points.
| Ogre::InvalidStateException | The curve must at least contain 2 points |
| const Ogre::Vector3& Procedural::BezierCurve3::safeGetPoint | ( | unsigned int | i | ) | const |
Safely gets a control point.
References Procedural::Utils::cap(), and Procedural::Utils::modulo().
| BezierCurve3& Procedural::BezierCurve3::setNumSeg | ( | unsigned int | numSeg | ) |
Sets number of segments per two control points.
| Ogre::InvalidParametersException | Minimum of numSeg is 1 |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
|
protectedinherited |
Tells if the spline is closed or not.
1.8.17