8 #ifndef META_OCEAN_RENDERING_TRIANGLES_H
9 #define META_OCEAN_RENDERING_TRIANGLES_H
71 virtual void setFaces(
const unsigned int numberImplicitTriangleFaces);
This class is the base class for all independent primitive objects.
Definition: IndependentPrimitive.h:25
ObjectType
Definition of different object type.
Definition: Object.h:63
This class is the base for all triangles objects.
Definition: Triangles.h:42
virtual void setFaces(const TriangleFaces &faces)
Sets the faces of this triangles object.
virtual unsigned int numberFaces() const
Returns the number of triangle faces defined in this primitive.
virtual TriangleFaces faces() const
Returns the faces of this triangles object.
Triangles()
Creates a new triangles object.
~Triangles() override
Destructs a triangles object.
static bool createTriangleMesh(const Vertices &vertices, const TriangleFaces &faces, Vertices &triangleVertices, Normals &triangleNormals, TriangleFaces &triangleFaces, const bool skipIrregularTriangles=true)
Creates a new set of triangles with face normals out of a given set of vertices and corresponding tri...
ObjectType type() const override
Returns the type of this object.
virtual void setFaces(const unsigned int numberImplicitTriangleFaces)
Sets the faces of this triangles object.
std::vector< Vertex > Vertices
Definition of a vector holding vertices.
Definition: rendering/Rendering.h:119
std::vector< Normal > Normals
Definition of a vector holding normals.
Definition: rendering/Rendering.h:107
std::vector< TriangleFace > TriangleFaces
Definition of a vector holding triangle faces.
Definition: TriangleFace.h:23
SmartObjectRef< Triangles > TrianglesRef
Definition of a smart object reference holding a triangles node.
Definition: Triangles.h:22
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15