THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/09/2009 at 17:10, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
I am trying to add points to an existing object.
This is the code that I am currently using.
However, the points are not showing up on my object.
Does anyone see anything wrong with this code?
Thanks,
~Shawn
> `
\> // Add new points
\> LONG newPointCount;
\> newPointCount = objPoly->GetPointCount();
\> vc.old_cnt=newPointCount;
\> vc.new_cnt=newPointCount + lngCrossSymCount;
\>
\> LONG addedPointCount = vc.new_cnt - vc.old_cnt;
\> GePrint("The Number of New points is: " + LongToString(addedPointCount));
\>
\> for (lngI=0;lngI<addedPointCount;lngI++)
\> {
\> if (objPoly->Message(MSG_POINTS_CHANGED,&vc;))
\> {
\> arrPoints=objPoly->GetPointW();
\> // update the first point
\> arrPoints[newPointCount]=(0,0,0);
\> // Increment newPointCount so it points to the seccond new point
\> newPointCount++;
\> objPoly->Message(MSG_UPDATE);
\> }
\> }
\>
\>
`