How toAdd Points to Polygon

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 11/09/2003 at 06:43, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.100 
Platform:      
Language(s) :     C++  ;

---------
Hi
I thought this would be simple to do, but after 2 hours at trying and searching, I give up.
All I want to do is simply add a point to a polygon object. Basically the same as using the AddPoints command.
Could someone please explain to me how this is done
Thanks

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 15/09/2003 at 22:44, xxxxxxxx wrote:

do somthing like this

    
    
    
    
    point_cnt=ToPoint(op)->GetPointCount();
    
    
    
    
    poly_count=ToPoly(op)->GetPolygonCount() :
    
    
    
    
    ToPoly(op)->ResizeObject( poly_count, point_cnt+1 );
    
    
    
    
    now your object has 1 more point than it had before.
    
    
    
    
    you have to get the pointer to  points **after** you resized/ same for polys if they changed.
    
    
    
    
      
    
    
    
    
     
    
    
    
    
     
    
    
    
    
     
    
    
    
    
     
    
    
    
    
     
    
    
    

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 20/09/2003 at 16:36, xxxxxxxx wrote:

Thank you, that was exactly what i was after