THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/09/2009 at 14:34, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ;
Language(s) : C++ ;
---------
okay, I have the following code which cycles through the polygons and finds polygons that do not have a partner on the other side of a symmetry plane.
> `
\> // Loop through all polygons and see if we need to delete them because they are on the wrong side
\> for (lngI=0;lngI<lngPolygonCount;lngI++)
\> {
\> /////////////////////////////////////////////////////////////////////////////////////////////////////////////
\> // Check to see if polygon has a partner
\> lngPartner=FindPolyPartnerTemp(arrPolygons,arrPartnerPoints,lngPolygonCount,lngI);
\>
\> if (lngPartner==-1)
\> { GePrint("Poly Doesn't have a partner "+LongToString(lngI));
\>
\> blnOK = false;
\> }
\>
`
The console then prints out a list of indices of polygons that do not have partners.
I would like to then store the points that make up those polygons in an array for future use. Can someone tell me what I need to do to store the points that make up the polygons at the printed indices. eventually I would like to find the coordinates of those points and then determine the average of those points to create new points in between those points.
LOL wordy, I know.. but that's what I am looking to do.. can anyone help me?
Thanks,
~Shawn