ne_plg_addVertex

RenPoint *sbne::ne_plg_addVertex(VTransformation2D *gS, RPoint *point = NULL, RPoint *basepoint1 = NULL, RPoint *basepoint2 = NULL, const int &index = -1)

Creates an RenPoint object using “point” RPoint object and adds it to this VPolygon object (if “basepoint1”, and “basepoint2” RPoint objects are not NULL , an RCubicBezier object is created).

Parameters:
  • gS – a pointer to the VPolygon object.

  • point – a pointer to the “point” RPoint object.

  • basepoint1 – a pointer to the “controlpoint1” RPoint object.

  • basepoint2 – a pointer to the “controlpoint2” RPoint object.

  • index – the index in the listofelements where the createed RenPoint object is going to be placed (placed at the of the list if index is not set).

Returns:

a pointer to the added RenPoint object.