}
return aBoxAlgo.shape();
}
-
+
//=========================================================================================================
std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeAPI::makeTranslation(
std::shared_ptr<GeomAPI_Shape> theSourceShape,
const double theDistance) throw (GeomAlgoAPI_Exception)
{
GeomAlgoAPI_Translation aTranslationAlgo(theSourceShape, theAxis, theDistance);
-
+
if (!aTranslationAlgo.check()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}
-
+
aTranslationAlgo.build();
-
+
if(!aTranslationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}
}
return aTranslationAlgo.shape();
}
-
+
//=========================================================================================================
std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeAPI::makeTranslation(
std::shared_ptr<GeomAPI_Shape> theSourceShape,
const double theDz) throw (GeomAlgoAPI_Exception)
{
GeomAlgoAPI_Translation aTranslationAlgo(theSourceShape, theDx, theDy, theDz);
-
+
if (!aTranslationAlgo.check()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}
-
+
aTranslationAlgo.build();
-
+
if(!aTranslationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}