So sm->GetSubShape() is used in this branch instead of this shape variable ( =sm->GetSubShape() ).
string algoType = algo->GetName();
if ( algoType.substr(0, 11) != "Projection_")
string algoType = algo->GetName();
if ( algoType.substr(0, 11) != "Projection_")
- return gen->Compute( *mesh, shape, /*shapeOnly=*/true );
+ return gen->Compute( *mesh, sm->GetSubShape(), /*shapeOnly=*/true );
// try to compute source mesh
// try to compute source mesh
}
}
if ( srcShape.IsNull() ) // no projection source defined
}
}
if ( srcShape.IsNull() ) // no projection source defined
- return gen->Compute( *mesh, shape, /*shapeOnly=*/true );
+ return gen->Compute( *mesh, sm->GetSubShape(), /*shapeOnly=*/true );
if ( srcShape.IsSame( sm->GetSubShape() ))
RETURN_BAD_RESULT("Projection from self");
if ( srcShape.IsSame( sm->GetSubShape() ))
RETURN_BAD_RESULT("Projection from self");
srcMesh = mesh;
if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 ) &&
srcMesh = mesh;
if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 ) &&
- gen->Compute( *mesh, shape, /*shapeOnly=*/true ))
+ gen->Compute( *mesh, sm->GetSubShape(), /*shapeOnly=*/true ))
return sm->IsMeshComputed();
return false;
return sm->IsMeshComputed();
return false;