Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Member Functions | List of all members
Procedural::SpherifyModifier Class Reference

Projects all TriangleBufferVertices on a sphere. More...

#include <ProceduralMeshModifiers.h>

Public Member Functions

 SpherifyModifier ()
 
SpherifyModifiersetInputTriangleBuffer (TriangleBuffer *inputTriangleBuffer)
 
SpherifyModifiersetRadius (Ogre::Real radius)
 
SpherifyModifiersetCenter (Ogre::Vector3 center)
 
void modify ()
 

Detailed Description

Projects all TriangleBufferVertices on a sphere.

Constructor & Destructor Documentation

◆ SpherifyModifier()

Procedural::SpherifyModifier::SpherifyModifier ( )

Member Function Documentation

◆ modify()

void Procedural::SpherifyModifier::modify ( )
Exceptions
Ogre::InvalidStateExceptionInput triangle buffer must be set

◆ setCenter()

SpherifyModifier& Procedural::SpherifyModifier::setCenter ( Ogre::Vector3  center)

◆ setInputTriangleBuffer()

SpherifyModifier& Procedural::SpherifyModifier::setInputTriangleBuffer ( TriangleBuffer inputTriangleBuffer)
Exceptions
Ogre::InvalidParametersExceptionInput triangle buffer must not be null

References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.

◆ setRadius()

SpherifyModifier& Procedural::SpherifyModifier::setRadius ( Ogre::Real  radius)

The documentation for this class was generated from the following file: