get object from poly id

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/11/2003 at 06:17, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   7.0 
Platform:    Mac  ;  
Language(s) :   C.O.F.F.E.E  ;

---------
Hi!
I am working on a shader and I want to do this:

When i cast a ray from a point and it hits something i get the id of the polygon the ray has hit. I want to figure out if this polygon belongs to the object that I am currently shading. Is there an easy way to do this?

Thanks
/Filip

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/11/2003 at 15:46, xxxxxxxx wrote:

No, not that I can think of. The VolumeData functions are pretty limited in C.O.F.F.E.E. In a C++ plugin you could call ID_to_Obj().