[osg-submissions] Changes in GeometryTechnique

Robert Osfield robert.osfield at gmail.com
Thu Aug 16 06:52:45 PDT 2007


Thanks Maria, I've now merged your changes and submitted to SVN.

I made a small tweak to the const osg::Vec3d& return type of
computeCenterModel(..) to  osg::Vec3d as your original code was
producing an warning under Linux:

/home/robert/OpenSceneGraph/src/osgTerrain/GeometryTechnique.cpp: In
member function 'virtual const osg::Vec3d&
osgTerrain::GeometryTechnique::computeCenterModel(osgTerrain::Locator*)':
/home/robert/OpenSceneGraph/src/osgTerrain/GeometryTechnique.cpp:201:
warning: reference to local variable 'centerModel' returned

Robert.

On 8/16/07, María Ten <materod at gmail.com> wrote:
> Hi Robert,
>
> I'm so sorry, I send you the incorrect version of the file (i have an
> unmodified file in my system to continue working with the svn version
> of osg).
>
> To notice the other people of the list i send this time to the
> osg-submissions list. I divide the init method of the
> geometrytechnique in submethods to made more easy the inheritance
> between the user and osg-class. This is a first step to add more
> functions in osgTerrain. Maybe the subdivision of the method have to
> be in the terraintechnique because is the base class of
> GeometryTechnique. If Robert or anyone think that this is better i
> change this class too.
>
> I hope that you are agree with this little change.
>
>
>
> --
> María Ten Rodríguez
> Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
> Ciudad Politécnica de la Innovación
> Universidad Politécnica de Valencia
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>


More information about the osg-submissions mailing list