On 06/11/2015 at 04:26, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Mac ;
Language(s) : C++ ;
---------
Greetings to all.
I need to write a plugin that can create n-gons on the fly, without actually altering the original mesh. I figured the best way to do this was to write an object deformer that can dynamically remove select edges to create the required n-gons, but I'm not really sure how to go about this.
I see the API has a nice function called GetNgonEdgesCompact() that returns a very simple structure of what edge is or isn't hidden. This seems to be exactly what I want, except GetNgonEdgesCompact() is read only and changes that I make to it are not reflected in the model.
Is there anything like this in the API?
I've been reading up on the Ngon/Pgon/Modelling library API, but that all seems awfully complex and I'm not really sure how to remove edges using those. I don't actually want to change the point count or order of the mesh (in fact, I'd rather go out of my way to ensure that never happens). All I'm after here is the ability to pick a few edges and dissolve them from the mesh in non-destructively.
-CMPX