Hi,

Thank you all

Actually I am using Intersectionvisitor for this purpose. I will
explain the scenario more clearly

I will make up a line segment with end points say p1(10,10,1100) and
p2(10,10,-100).
Along the length of this line(along z-axis, between 1100 and -100) I
want to find out all the intervals occupied by other objects and also
their geode names if possible.
For example I have two cubes which span as follows :
  1)      z=200 to z=300
  2)      z=500 to z=600
Note: we wont worry about the other dimensions of the cube we are only
concerned about the distance spanned by the cubes along z-axis only
because all our line-segments are going to be parallel to y-axis.

So I want the result to be the point of intersections with these
objects which I assume to be (_,_,600), (_,_,500),(_,_,300),(_,_,200).
If I get this form of result I am perfectly fine.This means that an
object begins at 600 and ends at 500 and then begins at 300 and ends
at 200.

But when I am using IntersectVisitor I am getting same intersection
point twice or more sometimes. For example in the above case I expect
4 intersections but I am getting 4 or 5 or 6 or 7 or more
intersections.

So I can resolve this If i can get the object(geode) name of the
intersected object. But I think that is not possible with intersect
visitor. How can I solve this problem now?

Thank you
hemanth

On Mon, Dec 22, 2008 at 11:43 PM, Robert Osfield
<robert.osfi...@gmail.com> wrote:
> Hi Hemanth? (Please sign with the name you wish to be addressed as to
> avoid confusion, thanks).
>
> There are lots of ways, which way depends upon you exact intersection
> needs and they type of model you have.  One place to start would the
> IntersectionVisitor/LineSegmentIntersector or PolytopeIntersector.
>
> Robert.
>
> On Mon, Dec 22, 2008 at 3:35 PM, hemanth korrapati
> <hemanthkorrap...@gmail.com> wrote:
>> Hi,
>>
>> If we want to know whether a given point is in free space or inside an
>> obstacle, can we know that ?.
>>
>> thanks
>> _______________________________________________
>> 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
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to