I think you can not mix index based geometry with non-index based geometry
within one geometry (I might be wrong here! ). If you want to draw a line
outside the pyramid, then attach another geometry to the geode doing just
the line in a way you want. Are yo after drawing an arrow? If so, your
approach will rebuild the arrow geometry for each matrix transform -
change.
-Nick


On Wed, Jun 23, 2010 at 6:08 PM, Gianni Ambrosio <[email protected]> wrote:

> Thanks Nick for the code.
>
> Now I would like to understand why I must add the indices in this case
> since for a simple line I just need to insert the vertices in the geometry
> node.
> In fact I would like to add the line to the geometry outside of the
> createPyramid method, where the line is created without the use of indices,
> just vertices.
>
> Regards
> Gianni
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=29326#29326
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to