-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
double theScaleFactor)
{
+ if (!theCenterPoint) {
+ myError = "Scale builder :: center point is not valid.";
+ return;
+ }
if (fabs(theScaleFactor) < Precision::Confusion()) {
myError = "Scale builder :: the scale factor is null.";
return;
double theScaleFactorY,
double theScaleFactorZ)
{
+ if (!theCenterPoint) {
+ myError = "Scale builder :: center point is not valid.";
+ return;
+ }
if (fabs(theScaleFactorX) < Precision::Confusion()) {
myError = "Scale builder :: the scale factor in X is null.";
return;
double theScaleFactorY,
double theScaleFactorZ)
{
+ if (!theSourceShape) {
+ myError = "Scale builder :: source shape is not valid.";
+ return;
+ }
+
const gp_Pnt& aCenterPoint = theCenterPoint->impl<gp_Pnt>();
// Perform the rotation matrix