25 #ifndef WGEGEODEUTILS_H
26 #define WGEGEODEUTILS_H
33 #include <osg/Geometry>
34 #include <osg/Drawable>
35 #include <osg/MatrixTransform>
36 #include <osg/PositionAttitudeTransform>
38 #include <osgText/Text>
40 #include "../common/math/WLine.h"
41 #include "../common/math/WPlane.h"
42 #include "../common/math/linearAlgebra/WPosition.h"
43 #include "../common/WColor.h"
44 #include "../common/datastructures/WColoredVertices.h"
46 #include "WGEGeometryUtils.h"
47 #include "WGESubdividedPlane.h"
49 #include "WTriangleMesh.h"
82 osg::ref_ptr< osg::Geometry >
createUnitCube(
const WColor& color );
135 const WColor& defaultColor = WColor( 1.0, 1.0, 1.0, 1.0 ),
136 bool includeNormals =
false,
137 bool lighting =
false,
138 bool useMeshColor =
true );
155 const WColor& defaultColor = WColor( 1.0, 1.0, 1.0, 1.0 ),
156 bool includeNormals =
false,
157 bool lighting =
false,
158 bool useMeshColor =
true );
174 const WColor& defaultColor = WColor( 1.0, 1.0, 1.0, 1.0 ),
175 bool includeNormals =
false,
176 bool lighting =
false
190 const WColor& defaultColor = WColor( 1.0, 1.0, 1.0, 1.0 ),
191 bool useMeshColor =
true );
200 osg::ref_ptr< osg::PositionAttitudeTransform >
addLabel( osg::Vec3 position, std::string text );
208 osg::ref_ptr< osg::PositionAttitudeTransform >
vector2label( osg::Vec3 position );
224 const WColor& color = WColor( 0.0, 0.7, 0.7, 1.0 ),
225 bool border =
false );
255 osg::ref_ptr< osg::Geode >
genFinitePlane( osg::Vec3
const& base, osg::Vec3
const& a, osg::Vec3
const& b,
256 const WColor& color = defaultColor::WHITE );
259 #endif // WGEGEODEUTILS_H