~ubuntu-branches/ubuntu/raring/openwalnut/raring

« back to all changes in this revision

Viewing changes to src/core/graphicsEngine/WGEGeometryUtils.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Eichelbaum
  • Date: 2012-12-12 11:26:32 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20121212112632-xhiuwkxuz5h0idkh
Tags: 1.3.1+hg5849-1
* Minor changes compared to 1.3.0 but included several bug fixes.
* See http://www.openwalnut.org/versions/4

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "../common/math/linearAlgebra/WLinearAlgebra.h"
33
33
#include "WTriangleMesh.h"
34
34
 
35
 
#include "WExportWGE.h"
 
35
 
36
36
 
37
37
namespace wge
38
38
{
63
63
     *
64
64
     * \return OSG vertex array where every four vertices describing a QUAD.
65
65
     */
66
 
    osg::ref_ptr< osg::Vec3Array > WGE_EXPORT generateCuboidQuads( const std::vector< WPosition >& corners );
 
66
    osg::ref_ptr< osg::Vec3Array > generateCuboidQuads( const std::vector< WPosition >& corners );
67
67
 
68
68
    /**
69
69
     * Generates for a QUAD given via 3 three points ( the fourth is not needed ) the
75
75
     *
76
76
     *\return OSG Vector of the normal of the QUAD
77
77
     */
78
 
    osg::Vec3 WGE_EXPORT getQuadNormal( const WPosition& a, const WPosition& b, const WPosition& c );
 
78
    osg::Vec3 getQuadNormal( const WPosition& a, const WPosition& b, const WPosition& c );
79
79
 
80
80
    /**
81
81
     * Generates for all QUADS of the Cuboid the normals in the following order:
103
103
     *
104
104
     *\return Array of normals in the order as shown above.
105
105
     */
106
 
    osg::ref_ptr< osg::Vec3Array > WGE_EXPORT generateCuboidQuadNormals( const std::vector< WPosition >& corners );
 
106
    osg::ref_ptr< osg::Vec3Array > generateCuboidQuadNormals( const std::vector< WPosition >& corners );
107
107
 
108
108
    /**
109
109
     * Calculate the Delaunay Triangulation of the given points.
124
124
     *                                 triangulation
125
125
     * \return triangulation as WTriangleMesh
126
126
     */
127
 
    WTriangleMesh::SPtr WGE_EXPORT triangulate( const std::vector< WPosition >& points, double transformationFactor = 0.0 );
 
127
    WTriangleMesh::SPtr triangulate( const std::vector< WPosition >& points, double transformationFactor = 0.0 );
128
128
}
129
129
 
130
130
#endif  // WGEGEOMETRYUTILS_H