ne_crv_addElement

LLineSegment *sbne::ne_crv_addElement(LCurve *c, const int &index = -1, LPoint *startpoint = NULL, LPoint *endpoint = NULL, LPoint *basepoint1 = NULL, LPoint *basepoint2 = NULL)

Creates an LLineSegment object using startpoint and ednpoint LPoint objects and adds it to this LCurve object (if basepoint1, and basepoint2 LPoint objects are not NULL , an LCubicBezier object is created).

Parameters:
  • c – a pointer to the LCurve object.

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

  • startpoint – a pointer to the startpoint LPoint object.

  • endpoint – a pointer to the endpoint LPoint object.

  • basepoint1 – a pointer to the control point 1 LPoint object.

  • basepoint2 – a pointer to the control point 2 LPoint object.