25 #ifndef WGEGEOMETRYUTILS_H
26 #define WGEGEOMETRYUTILS_H
32 #include "../common/math/linearAlgebra/WPosition.h"
33 #include "WTriangleMesh.h"
66 osg::ref_ptr< osg::Vec3Array >
generateCuboidQuads(
const std::vector< WPosition >& corners );
This only is a 3d double vector.
std::shared_ptr< WTriangleMesh > SPtr
Shared pointer.
Extend the wge utils namespace with additional methods relating WDataTexture3D.
osg::ref_ptr< osg::Vec3Array > generateCuboidQuadNormals(const std::vector< WPosition > &corners)
Generates for all QUADS of the Cuboid the normals in the following order:
WTriangleMesh::SPtr triangulate(const std::vector< WPosition > &points, double transformationFactor=0.0)
Calculate the Delaunay Triangulation of the given points.
osg::Vec3 getQuadNormal(const WPosition &a, const WPosition &b, const WPosition &c)
Generates for a QUAD given via 3 three points ( the fourth is not needed ) the normal.
osg::ref_ptr< osg::Vec3Array > generateCuboidQuads(const std::vector< WPosition > &corners)
Creates out of eight corner vertices QUAD vertices.