THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/12/2008 at 19:26, xxxxxxxx wrote:
Cinema 4D Version: R9-R11
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
1. MCOMMAND_TRIANGULATE? Info? The result is put back into ModelingCommandData.op? Is the result inserted into the document automatically? Etc. etc. etc.
2. ToolData::MouseInput() and clicking points on document objects? BaseDocument.Polygonize() is okay but I'm getting freeze crashes as the polygon counts on objects increases (remember that I'm doing Polygonize to get polygon reps of non-polygon objects or deformed/generated objects). I tried using C4DObjectList with SelectionListCreate() and it doesn't seem to work with primitives/deformed/generated objects so I figured Polygonize() would work. Not if it leads to freeze/crashes though.
3. So basically, what I need is a solid way to get the *foremost* object under the cursor doubleclick and then use GeRayCollider on it maybe without doc->Polygonize() but only converting an object to polygon when it is the object of interest. I don't think forcing users to bake the object of interest into a polygon form beforehand is very user-friendly.