- GeomAlgoAPI_Translation aMovementAlgo(aBaseShape, anAxis, aDistance, isPart);
-
- // Checking that the algorithm worked properly.
- if(!aMovementAlgo.isDone()) {
- static const std::string aFeatureError = "Movement algorithm failed";
- setError(aFeatureError);
- break;
- }
- if(aMovementAlgo.shape()->isNull()) {
- static const std::string aShapeError = "Resulting shape is Null";
- setError(aShapeError);
- break;
- }
- if(!aMovementAlgo.isValid()) {
- std::string aFeatureError = "Warning: resulting shape is not valid";
- setError(aFeatureError);
- break;
- }