Handle(GEOM_Function) anOriginal = theObject->GetLastFunction();
if (anOriginal.IsNull()) return NULL; //There is no function which creates an object to be set in position
+ Handle(GEOM_Function) aSrcF;
+ if (!theStartLCS.IsNull()) aSrcF = theStartLCS->GetLastFunction();
+
//Add a Position function
Standard_Integer aType = POSITION_SHAPE;
if (theStartLCS.IsNull()) aType = POSITION_SHAPE_FROM_GLOBAL;
aTI.SetShape(anOriginal);
aTI.SetEndLCS(theEndLCS->GetLastFunction());
if (!theStartLCS.IsNull())
- aTI.SetStartLCS(theStartLCS->GetLastFunction());
+ aTI.SetStartLCS(aSrcF);
//Compute the Position
try {
case 1:
{
for (int i = 0; i < myObjects.length(); i++) {
- if (toCreateCopy)
anObj = toCreateCopy ?
anOper->PositionShapeCopy(myObjects[i], myStartLCS, myEndLCS) :
anOper->PositionShape(myObjects[i], myStartLCS, myEndLCS);