1 // Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #include "GEOM_ITestOperations_i.hh"
25 #include "utilities.h"
27 #include "Utils_ExceptHandlers.hxx"
29 #include "GEOM_Engine.hxx"
30 #include "GEOM_Object.hxx"
32 //=============================================================================
36 //=============================================================================
37 GEOM_ITestOperations_i::GEOM_ITestOperations_i (PortableServer::POA_ptr thePOA,
38 GEOM::GEOM_Gen_ptr theEngine,
39 ::GEOMImpl_ITestOperations* theImpl)
40 :GEOM_IOperations_i(thePOA, theEngine, theImpl)
42 MESSAGE("GEOM_ITestOperations_i::GEOM_ITestOperations_i");
45 //=============================================================================
49 //=============================================================================
50 GEOM_ITestOperations_i::~GEOM_ITestOperations_i()
52 MESSAGE("GEOM_ITestOperations_i::~GEOM_ITestOperations_i");
56 //=============================================================================
60 //=============================================================================
61 CORBA::Boolean GEOM_ITestOperations_i::Tesselate(GEOM::GEOM_Object_ptr theShape,
62 CORBA::Double theLinearDeflection,
63 CORBA::Boolean theIsRelative,
64 CORBA::Double theAngularDeflection)
66 // Set a not done flag
67 GetOperations()->SetNotDone();
69 // Get the source object
70 Handle(::GEOM_Object) aShape = GetObjectImpl(theShape);
71 if (aShape.IsNull()) return false;
74 return GetOperations()->Tesselate(aShape, theLinearDeflection, theIsRelative, theAngularDeflection);