Re: [brlcad-devel] problem with rt_shootray

2012-07-22 Thread Daniel Roßberg
2012/7/20 Oliver Gloth : > Daniel, > > I thought it was a known behaviour; if not, I'll first have a look at my > stuff and make sure that I didn't make any silly mistake. > > Another question came up, however: Is there a method to determine if a > given point (x,y,z) is inside or outside of a give

Re: [brlcad-devel] problem with rt_shootray

2012-07-20 Thread crdueck
Oliver, One method i've seen used in the librt library is to count the number of times a ray originating at the point in question intersects with the surface of the object. If the number of times is even, the point is outside the object. If odd, the point is inside. What specific BRL-CAD objec

Re: [brlcad-devel] problem with rt_shootray

2012-07-19 Thread Oliver Gloth
Daniel, I thought it was a known behaviour; if not, I'll first have a look at my stuff and make sure that I didn't make any silly mistake. Another question came up, however: Is there a method to determine if a given point (x,y,z) is inside or outside of a given BRL-CAD object? Cheers, Oliver

Re: [brlcad-devel] problem with rt_shootray

2012-07-19 Thread Daniel Roßberg
Oliver, I tried to reproduce your problem with a simple example (boolean-ops.g from BRL-CAD's example geometries) but didn't succeed. Could you please provide us an example (geometry, start point, direction) and the result you got? Daniel 2012/7/17 Oliver Gloth : > Hello, > > I am working on a