ne_rc_addVertex
-
RenPoint *sbne::ne_rc_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 RCurve object (if “basepoint1”, and “basepoint2” RPoint objects are not
NULL, an RCubicBezier object is created).- Parameters
gS – a pointer to the RCurve 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
listofelementswhere the createed RenPoint object is going to be placed (placed at the of the list ifindexis not set).
- Returns
a pointer to the added RenPoint object.