Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
#include <ProceduralSpringGenerator.h>
Public Member Functions | |
HelixPath () | |
Default constructor. More... | |
HelixPath & | setHeight (Ogre::Real height) |
Sets the height of the helix (default=1.0) More... | |
HelixPath & | setRadius (Ogre::Real radius) |
Sets the radius of the helix (default = 1.0) More... | |
HelixPath & | setNumRound (Ogre::Real numRound) |
Sets the number of rounds (default = 5.0) More... | |
HelixPath & | setNumSegPath (unsigned int numSeg) |
Sets number of segments along the path per turn. More... | |
Path | realizePath () |
Builds a shape from control points. More... | |
Produces a helix path
Procedural::HelixPath::HelixPath | ( | ) |
Default constructor.
Path Procedural::HelixPath::realizePath | ( | ) |
Builds a shape from control points.
HelixPath& Procedural::HelixPath::setHeight | ( | Ogre::Real | height | ) |
Sets the height of the helix (default=1.0)
Ogre::InvalidParametersException | Height must be larger than 0! |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
HelixPath& Procedural::HelixPath::setNumRound | ( | Ogre::Real | numRound | ) |
Sets the number of rounds (default = 5.0)
Ogre::InvalidParametersException | You have to rotate more then 0 times! |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
HelixPath& Procedural::HelixPath::setNumSegPath | ( | unsigned int | numSeg | ) |
Sets number of segments along the path per turn.
Ogre::InvalidParametersException | Minimum of numSeg is 1 |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
HelixPath& Procedural::HelixPath::setRadius | ( | Ogre::Real | radius | ) |
Sets the radius of the helix (default = 1.0)
Ogre::InvalidParametersException | Radius must be larger than 0! |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.