-// Copyright (C) 2018-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2018-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
#include <Config_PropManager.h>
#include <GeomAPI_Shape.h>
-#include <GeomAlgoAPI_GeometryCalculation.h>
+#include <GeomAlgoAPI_ShapeTools.h>
#include <iomanip>
double aLength;
double aSurfArea;
double aVolume;
- std::string aError;
- if (!getGeometryCalculation(aShape,
- aTolerance,
- aLength,
- aSurfArea,
- aVolume,
- aError))
- setError("Error in Geometry calculation :" + aError);
+
+ aLength = GeomAlgoAPI_ShapeTools::length(aShape);
+ aSurfArea = GeomAlgoAPI_ShapeTools::area(aShape);
+ aVolume = GeomAlgoAPI_ShapeTools::volume(aShape);
streamL << std::setprecision(14) << aLength;
aValues->setValue(0, aLength);
string(VOLUME_ID())->setValue(streamV.str());
}
}
-