Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/05/2003 at 09:13, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.100 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- I´m pretty new at programming coffee, and I´ve been trying for some time now to change the point-allocation for existing polygons (eg. polygon 0: points 0, 1, 2, 0; change it to polygon 0: points 5, 6, 7, 5; just like it is displayed in the structure manager). How do I set this information? (I looked both into the "Create a polyobject using C.O.F.F.E.E." and "Simple Polygon Problem" threads, but unfortunately I could not figure out how to do this).
Any help would be appreciated.
MikeI
On 26/05/2003 at 01:03, xxxxxxxx wrote:
var p = obj->GetPolygon(0); p.a = 5; // Perhaps this should be -> instead of . p.b = 6; p.c = 7; p.d = 5; obj->SetPolygon(0, p); obj->Message(MSG_UPDATE);
On 26/05/2003 at 01:22, xxxxxxxx wrote:
Thanks, that did the job, now it works like a charm. I had some similar code in my plugin, but like your first version I used p.a to set the polygons, but you need to use p->a to get it working.