From be7adf6a7a775f269c00f994af50035035844fee Mon Sep 17 00:00:00 2001 From: Clarisse Genrault Date: Wed, 22 Mar 2017 10:16:02 +0100 Subject: [PATCH] Fix bug on the direct aPI. --- src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp index 5fdeaee50..44ec71043 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp @@ -243,9 +243,9 @@ namespace GeomAlgoAPI_ShapeAPI } //=============================================================================================== - std::shared_ptr makeTorus(std::shared_ptr theBasePoint, - std::shared_ptr theEdge, - double theRadius, double theRingRadius) + std::shared_ptr GeomAlgoAPI_ShapeAPI::makeTorus( + std::shared_ptr theBasePoint, + std::shared_ptr theEdge,double theRadius, double theRingRadius) throw (GeomAlgoAPI_Exception) { // Check if the base point is OK @@ -280,8 +280,8 @@ namespace GeomAlgoAPI_ShapeAPI } //=============================================================================================== - std::shared_ptr makeTorus(double theRadius, double theRingRadius) - throw (GeomAlgoAPI_Exception) + std::shared_ptr GeomAlgoAPI_ShapeAPI::makeTorus(double theRadius, + double theRingRadius) throw (GeomAlgoAPI_Exception) { std::shared_ptr aBasePoint = std::shared_ptr(new GeomAPI_Pnt(0.,0.,0.)); @@ -309,10 +309,11 @@ namespace GeomAlgoAPI_ShapeAPI } //=============================================================================================== - std::shared_ptr makeCone(std::shared_ptr theBasePoint, - std::shared_ptr theEdge, - double theBaseRadius, double theTopRadius, - double theHeight) throw (GeomAlgoAPI_Exception) + std::shared_ptr GeomAlgoAPI_ShapeAPI::makeCone( + std::shared_ptr theBasePoint, + std::shared_ptr theEdge, + double theBaseRadius, double theTopRadius, + double theHeight) throw (GeomAlgoAPI_Exception) { // Check if the base point is OK if (!theBasePoint) { @@ -346,8 +347,9 @@ namespace GeomAlgoAPI_ShapeAPI } //=============================================================================================== - std::shared_ptr makeCone(double theBaseRadius, double theTopRadius, - double theHeight) throw (GeomAlgoAPI_Exception) + std::shared_ptr GeomAlgoAPI_ShapeAPI::makeCone( + double theBaseRadius, double theTopRadius, + double theHeight) throw (GeomAlgoAPI_Exception) { std::shared_ptr aBasePoint = std::shared_ptr(new GeomAPI_Pnt(0.,0.,0.)); -- 2.39.2