67 #ifndef _graphicsproceduralspherifymodifier_cpp
68 #define _graphicsproceduralspherifymodifier_cpp
70 #include "Graphics/Procedural/Mesh/spherifymodifier.h"
100 VertIt->Normal = ( VertIt->Position - this->
SphereCenter ) / Length;
107 {
return "SpherifyModifier"; }
Real SphereRadius
The radius of the sphere to project vertices onto.
VertexContainer::iterator VertexIterator
Iterator type for Vertex instances in a VertexContainer.
SpherifyModifier & SetSphereCenter(const Vector3 &Center)
Sets the location of the sphere to project to.
virtual String GetName() const
Gets the name of this modifier.
A convenience buffer that stores vertices and indices of a mesh to be generated.
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information.
virtual void Modify(TriangleBuffer &Buffer)
Alters the generated pixels in a TriangleBuffer.
SpherifyModifier()
Blank constructor.
This implements the exception hiearchy for Mezzanine.
VertexContainer & GetVertices()
Gets a modifiable reference to Vertices.
A modifier that will increase or decrease the distance to a point to match a specified radius...
float Real
A Datatype used to represent a real floating point number.
SpherifyModifier & SetSphereRadius(const Real Radius)
Sets the size of the sphere to project onto.
void SetValues(const Real &X, const Real &Y, const Real &Z)
Manually sets all the members of this vector3.
Thrown when the available information should have worked but failed for unknown reasons.
virtual ~SpherifyModifier()
Class destructor.
This is used to represent a point in space, or a vector through space.
The bulk of the engine components go in this namspace.
std::string String
A datatype used to a series of characters.
Vector3 SphereCenter
The central point for the sphere to project vertices onto.