// Refresh the position of the contourModel last point with the data of the connector model
point = _model->GetManualPoint(_model->GetSizeLstPoints()-1);
point->SetPoint(xCenter,yport,zCenter);
+
}
//=========================================================================
void GConnectorModel::save(std::string &content)
{
+ char buffer[50];
+
content+="CONNECTION\n";
// Connection info
content+=":";
content+=_endPort->getBBTKName();
content+="\n";
+
+ int i,sizeLstPoints = _model->GetSizeLstPoints()-2;
+ content+="NumberOfControlPoints:";
+ sprintf (buffer, "%d", sizeLstPoints );
+ content+=buffer;
+ content+="\n";
+
+ for (i=0;i<sizeLstPoints;i++)
+ {
+ manualPoint *mp = _model->GetManualPoint(i+1);
+ sprintf (buffer, "%f:%f:%f\n", (float)mp->GetX(),(float)mp->GetY(),(float)mp->GetZ() );
+ content+=buffer;
+ }
}
//=========================================================================