Hi Andy, Am 22.10.2012 21:05, schrieb Andy Skinner: > I know that intersections are about 3d world coordinates, and line widths are > about pixels. But is there a way to use line widths in calculating > intersections with the polytope intersector? There is currently no code in PolytopeIntersector which takes line widths (or point sizes) into account. While it would be possible to implement it I doubt that it would be worth the effort.
> > In other words, I want a wider line to be easier to pick. I think this could be accomplished by a post-processing step on the results: Normally you would use the nearest intersection but in your case you could also check the line width and prefer thicker lines over nearer lines. > I could just expand the polytope a bit, except that the lines are just one > kind of thing in the scene, and they could have different line widths. I think your "expanded polytope"-idea should also work. You could use differently sized polytopes for different line widths. As for your "other kinds of thinks" in the scene you should be aware that the performance of PolytopeIntersector for 2d-geometries is rather bad. It is much faster to use LineSegementIntersector for those and combine the results afterwards. > > thanks, > > andy > Cheers, Peter > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org