if(!aTranslationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}
- if (!aTranslationAlgo.checkValid("Translation builder with axis and distance")) {
- throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
- }
+
return aTranslationAlgo.shape();
}
if(!aTranslationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}
- if (!aTranslationAlgo.checkValid("Translation builder with dimensions")) {
- throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
- }
+
return aTranslationAlgo.shape();
}
if(!aTranslationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
}
- if (!aTranslationAlgo.checkValid("Translation builder with two points")) {
- throw GeomAlgoAPI_Exception(aTranslationAlgo.getError());
- }
+
return aTranslationAlgo.shape();
}
+ //===============================================================================================
std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeAPI::makeRotation(
std::shared_ptr<GeomAPI_Shape> theSourceShape,
std::shared_ptr<GeomAPI_Ax1> theAxis,
if(!aRotationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aRotationAlgo.getError());
}
- if (!aRotationAlgo.checkValid("Rotation builder with two points")) {
- throw GeomAlgoAPI_Exception(aRotationAlgo.getError());
- }
+
return aRotationAlgo.shape();
}
+ //===============================================================================================
std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeAPI::makeRotation(
std::shared_ptr<GeomAPI_Shape> theSourceShape,
std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
if(!aRotationAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aRotationAlgo.getError());
}
- if (!aRotationAlgo.checkValid("Rotation builder with two points")) {
- throw GeomAlgoAPI_Exception(aRotationAlgo.getError());
- }
+
return aRotationAlgo.shape();
}
if(!aSymmetryAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError());
}
- if (!aSymmetryAlgo.checkValid("Symmetry builder by a point")) {
- throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError());
- }
+
return aSymmetryAlgo.shape();
}
if(!aSymmetryAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError());
}
- if (!aSymmetryAlgo.checkValid("Symmetry builder by an axis")) {
- throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError());
- }
+
return aSymmetryAlgo.shape();
}
if(!aSymmetryAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError());
}
- if (!aSymmetryAlgo.checkValid("Symmetry builder by a plane")) {
- throw GeomAlgoAPI_Exception(aSymmetryAlgo.getError());
- }
+
return aSymmetryAlgo.shape();
}
if(!aScaleAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aScaleAlgo.getError());
}
- if (!aScaleAlgo.checkValid("Scale builder by a scale factor")) {
- throw GeomAlgoAPI_Exception(aScaleAlgo.getError());
- }
+
return aScaleAlgo.shape();
}
if(!aScaleAlgo.isDone()) {
throw GeomAlgoAPI_Exception(aScaleAlgo.getError());
}
- if (!aScaleAlgo.checkValid("Scale builder by dimensions")) {
- throw GeomAlgoAPI_Exception(aScaleAlgo.getError());
- }
+
return aScaleAlgo.shape();
}