THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/09/2007 at 06:30, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) :
---------
Hi,
I want to project a spline on geometry.
May approach was: To sample a number of points from the spline, then send collision rays from these points to see if there's any geometry. Then move the point's position to the position of ray collision.
But this would only let me project the spline on *one* object with geometry, right? I want it to be projected on more than just one geometry.
Like the "Project" function in the Functions->Spline Menu, I want any object (or at least more than just one) to be used for projection.
How could I do that? Is there any basic concept I need to know, or example code? My only idea would be to iterate through all objects in the scene, always doing the ray collision check (sounds slow). I also got the tip to connect all objects in the scene to one big object (internally in my plugin) but I think that would cost lots of memory, wouldn't it?
Greetings,
Jack