On 10/8/07, <b class="gmail_sendername">Schmidt, Richard, SDGE1</b> <<a href="mailto:Richard.Schmidt@eads.com">Richard.Schmidt@eads.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>Daniel<br><br>Ulrich presented a nice outlining technique on his homepage:<br><br><a href="http://www.sandbox.de/osg/">http://www.sandbox.de/osg/</a><br><br>Richard<br><br>-----Original Message-----<br>From: <a href="mailto:osg-users-bounces@lists.openscenegraph.org">
osg-users-bounces@lists.openscenegraph.org</a><br>[mailto:<a href="mailto:osg-users-bounces@lists.openscenegraph.org">osg-users-bounces@lists.openscenegraph.org</a>] On Behalf Of Daniel<br>Moos<br>Sent: Sunday, October 07, 2007 1:52 PM
<br>To: <a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>Subject: [osg-users] Highlighting with OSG<br><br>Hi @all<br><br>I'm new here and I try to make a "simple" hightlighting effect with
<br>OpenSceneGraph. I want to highlight triangles, vertexes and lines from a<br><br>loaded model by picking it with the mouse.<br><br>The picking isn't the problem. But how can I make a highlighting effect?<br>For<br>
example change the color of the object...<br><br>A second Question...<br>If I loaded a model into my scene. Where can I get a list with all the<br>triangles and its vertexes?<br><br>Thank you!<br>Daniel</blockquote><div><br>
 </div><br><div>Hi Daniel<br>              As Santosh said,after performing intersection,get the first node which intersected with the point you clicked. Inorder to get the geometry or the vertex list of this node,I did the following..
<br><br> osgUtil::LineSegmentIntersector::Intersection intersection = picker->getFirstIntersection();              <br> osg::Geometry* geom=new osg::Geometry;<br> geom =(intersection.drawable->asGeometry());<br> osg::Vec3Array *vertices=new osg::Vec3Array;
<br>vertices=dynamic_cast<osg::Vec3Array*>(geom->getVertexArray());<br><br>where Vertices is the vertex list of that node.<br> <br>--Deepti.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
_______________________________________________<br>osg-users mailing list<br><a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br><a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or">
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or</a><br>g<br>_______________________________________________<br>osg-users mailing list<br><a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org
</a><br><a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br></blockquote></div><br>