THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/11/2002 at 22:57, xxxxxxxx wrote:
Cinema 4D Version: 7.303
Platform: Windows ; Mac ;
Language(s) : C.O.F.F.E.E ;
I have posted my question here: www.vinogroup.com/vino/question2.gif
Can anybody help me?
On 27/11/2002 at 09:03, xxxxxxxx wrote:
Are the objects planar, i.e. flat and in the same plane?
On 28/11/2002 at 01:05, xxxxxxxx wrote:
1. Yes. Both the objects are in same level. This is my first step.
But later I would like to find intersection point of objects which are in different levels also.
2. Mikael can you help me in one more question? How can i find whether an object is there in a particular point or not? ie. If i pass an vector point to my function, it should tell the list of objects available in that point. Is there any builtin function in COFFEE? What I feel to do is, get the objects one by one and compare each of its points with the input parameter. Am i correct to say this? I feel this procedure is not effective one. Any guidelines for me?
On 28/11/2002 at 02:46, xxxxxxxx wrote:
1. Just loop through all pairs of edges and check for intersections. I'm afraid the specific algorithms are outside the scope of regular developer support. Either consult a book or web site on the subject, or hope that someone else here can help you.
2. No, there's no such function in C.O.F.F.E.E. The easiest algorithm is to consider a ray from the point to infinity and count the number of intersections of that ray with polygons of the object. If there are an odd number of intersections the point must be inside the object.
On 29/11/2002 at 02:50, xxxxxxxx wrote:
Mikael, do you know any good book for 3D programming?
On 29/11/2002 at 05:50, xxxxxxxx wrote:
Have a look in the Litterature section of the Further Information chapter in the C++ SDK documentation. (http://www.plugincafe.com/r8sdk/pages/general_docs/doc_FurtherInformati223.html#literature0)