26 #include <osg/ShapeDrawable>
28 #include "core/graphicsEngine/WGEGeodeUtils.h"
30 #include "WDemoGeometry.h"
38 osg::ref_ptr< osg::Group > group(
new osg::Group );
42 for(
size_t i = 0; i < 5; ++i )
45 osg::Geode* sphereGeode =
new osg::Geode;
46 sphereGeode->addDrawable(
47 new osg::ShapeDrawable(
49 osg::Vec3d( x, 50.0, 2 + i * 3 ),
56 x += 2 + 2 * i * 3 + 10.0;
59 group->addChild( sphereGeode );
68 osg::Vec3( 100.0, 0.0, 0.0 ),
69 osg::Vec3( 0.0, 100.0, 0.0 ),
70 WColor( 0.5, 0.5, 0.5, 1.0 )
osg::ref_ptr< osg::Node > createSphereGeometry()
Create several spheres.
osg::ref_ptr< osg::Node > createPlaneGeometry()
Create a plane.
osg::ref_ptr< osg::Geode > genFinitePlane(double xSize, double ySize, const WPlane &p, const WColor &color=WColor(0.0, 0.7, 0.7, 1.0), bool border=false)
Generates a geode out of a Plane with a fixed size in direction of the vectors which span that plane.