- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Need help with the rays
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-15-2011 04:26 AM - last edited on 03-15-2011 06:39 AM
Dea all,
I need to know what is the type of the Entity the ray hit
for simple ex ..
BODY* block;
api_solid_block(SPAposition(0, 0, 0), SPAposition (100, 100, 100), block);
SPAposition ray_pos = SPAposition(50, 50, 50);
SPAunit_vector ray_dir = normalise(SPAvector(-70,-70,-70));
ENTITY_LIST results;
double* params = NULL;
// 0.1 = ray radius, 1 = number of hits wanted
api_ray_test_body(ray_pos, ray_dir, 0.1, 1, block, results, params);
if (results.count() != 0)
{
// I need to know what did the ray hit (face, Edge, Coedge ..etc)
// then I need to ask if this ray hit face ( keep the ray and do something)
}
Re: Need help with the rays
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-15-2011 06:26 AM
Dear Shaib
Please see the page http://doc.spatial.com/qref/ACIS/html/group__ACISQ
best regards
Eric
Re: Need help with the rays
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-15-2011 07:23 AM
Thanks Eric for your quick response.

