bool GeomAlgoAPI_Scale::check()
{
if (!mySourceShape) {
- myError = "Scale builder :: source shape is invalid.";
+ myError = "Scale builder :: source shape is not valid.";
return false;
}
if (!myCenterPoint) {
- myError = "Scale builder :: center point is invalid.";
+ myError = "Scale builder :: center point is not valid.";
return false;
}
switch (myMethodType) {
if (!theEdge) {
throw GeomAlgoAPI_Exception("Cylinder builder :: the axis is not valid.");
}
-
+
std::shared_ptr<GeomAPI_Ax2> anAxis;
anAxis = std::shared_ptr<GeomAPI_Ax2>(new GeomAPI_Ax2(theBasePoint,
theEdge->line()->direction()));
switch (myMethodType) {
case BY_POINT: {
if (!myPoint) {
- myError = "Symmetry builder :: point is invalid.";
+ myError = "Symmetry builder :: point is not valid.";
return false;
}
if (!mySourceShape) {
- myError = "Symmetry builder :: source shape is invalid.";
+ myError = "Symmetry builder :: source shape is not valid.";
return false;
}
return true;
}
case BY_AXIS: {
if (!myAxis) {
- myError = "Symmetry builder :: axis is invalid.";
+ myError = "Symmetry builder :: axis is not valid.";
return false;
}
if (!mySourceShape) {
- myError = "Symmetry builder :: source shape is invalid.";
+ myError = "Symmetry builder :: source shape is not valid.";
return false;
}
return true;
}
case BY_PLANE: {
if (!myPlane) {
- myError = "Symmetry builder :: plane is invalid.";
+ myError = "Symmetry builder :: plane is not valid.";
return false;
}
if (!mySourceShape) {
- myError = "Symmetry builder :: source shape is invalid.";
+ myError = "Symmetry builder :: source shape is not valid.";
return false;
}
return true;
aShape->setImpl(new TopoDS_Shape(aResult));
setShape(aShape);
setDone(true);
-}
\ No newline at end of file
+}