THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/09/2011 at 09:36, xxxxxxxx wrote:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
I'm getting some weird behaviour when using the Modeling library. Here's what I do:
1. I use the SetNgon() function to set the ngon at index i to a manually created Ngon. This Ngon includes the edge a,b.
2. To double check, I use GetNgon to retrieve the Ngon at i. I print the points and segments of this Ngon, and verify that it indeed contains the edge a,b.
3. I use GetEdgeNgons() to get all Ngons that contain the edge a,b. Since we just created such a Ngon, there should be at least one. But the number of adjacent polygons, pcnt, is zero!
This may be caused by a bug in my code - I just wanted to check that I'm not missing something here, e.g, if the neighborhod information of the modeling object needs to be updated after calling SetNgon or something like that?
I'll try to put together a minimal code example that shows this behavior and post it as soon as I can.