Ray-Collision in Coffee

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

On 09/11/2009 at 03:29, xxxxxxxx wrote:

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

---------
Hello,

I looking for a script for ray-collision in coffee (like the ray-collision in XPresso).

Anyone have an idea to do that?

Cheers Toni

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

On 12/11/2009 at 11:17, xxxxxxxx wrote:

I'd use an existing algorithm as there is no ray-collision in COFFEE (there is a GeRayCollider in the C++ SDK).

The best approach is first by decreasing bounding-box elimination (objectgroup-objectgroup, object-object, polygon-polygon) and then two-way ray-triangle intersect tests. This usually involves taking rays off of the one object from either random surface points (random point in triangle algorithm) or vertices and triangle centroids (or both).

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

On 12/11/2009 at 12:10, xxxxxxxx wrote:

Hello Robert,

Thank you for your answer. I solved my problem and use the normal ray-collision with coffee-nodes.