Hi all, Thanks for your response. I want this feature for picking of individual edges/points of a complex geometry in 3d modeler based on OpenSG I'm working on. E.g. I have a triangle geometry and an equivalent set of edges (line geometry) for picking/visualisation of edges of the geometry... I realize that this is not a general feature for a scenegraph like OpenSG, but It's useful for the modeler... Currently I'm out of the house, but I'll look at the example Dirk pointed me as soon as I come.
Thanks --- Gerrit Voss wrote: > currently not, if you refer to geometries containing points or lines. > The math for the point / line test is there, in osg::Line > ( e.g if(line.distance(pnt) < Eps) ) but not for line/line tests. How > important is this feature ??. A short question just to be sure, you > really want to intersect against the individual point or line not > against the surfaces you would get if you convert them into polygons ? Dirk Reiners wrote: > not directly. The interesting question is what you want to use it for. > If you need it picking/selecting points/lines there is an example in > Source/WindowSystem/GLUT called testLineFrustumIntesector.cpp that you > might be able to base it on. It iterates through a geometry and selects > all the edges that intersect a frustum (i.e. an area of n pixel around a > click point). > We don't have a full-blown demo for that, but that test might help you > get started. -- VOLNY Bingo - vyzvednete si svou hraci kartu a vyhrajte nekterou z 38 cen! http://soutez.volny.cz/slepa.php ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
