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 object are you interested in?
Chris On 07/20/2012 02:40 AM, Oliver Gloth wrote: > 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 > > On 19/07/12 11:15, Daniel Roßberg wrote: >> 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<ogl...@engits.com>: >>> Hello, >>> >>> I am working on a mesh generation algorithm based on BRL-CAD. As >>> geometry interface I intend to use the ray-tracing functionality. From >>> any point in space I would like to shoot a ray in a given direction and >>> get the first intersection with the surface of the volume. The original >>> point could be inside or outside of the volume. Unfortunately >>> rt_shootray will also return intersections with internal shapes which >>> have been used to create the volume (boolean tree). Is there a way to >>> specify that I do not want this? Or do I have to shoot another ray in >>> the same direction and check if it re-enters with zero distance? >>> >>> Cheers, >>> Oliver >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> BRL-CAD Developer mailing list >>> brlcad-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/brlcad-devel >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> BRL-CAD Developer mailing list >> brlcad-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/brlcad-devel > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel