/src/contrib/geom-5.1.2.7/inc_pythonocc/BlockFix_UnionEdges.hxx

http://pythonocc.googlecode.com/ · C++ Header · 97 lines · 38 code · 29 blank · 30 comment · 1 complexity · 07a2278a4a60431d0549fd0a70064ba9 MD5 · raw file

  1. // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  2. // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  3. //
  4. // This library is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU Lesser General Public
  6. // License as published by the Free Software Foundation; either
  7. // version 2.1 of the License.
  8. //
  9. // This library is distributed in the hope that it will be useful
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. // Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public
  15. // License along with this library; if not, write to the Free Software
  16. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. //
  18. // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
  19. #ifndef _BlockFix_UnionEdges_HeaderFile
  20. #define _BlockFix_UnionEdges_HeaderFile
  21. #ifndef _Standard_Real_HeaderFile
  22. #include <Standard_Real.hxx>
  23. #endif
  24. #ifndef _Handle_ShapeBuild_ReShape_HeaderFile
  25. #include <Handle_ShapeBuild_ReShape.hxx>
  26. #endif
  27. class ShapeBuild_ReShape;
  28. class TopoDS_Shape;
  29. #ifndef _Standard_HeaderFile
  30. #include <Standard.hxx>
  31. #endif
  32. #ifndef _Standard_Macro_HeaderFile
  33. #include <Standard_Macro.hxx>
  34. #endif
  35. class BlockFix_UnionEdges {
  36. public:
  37. void* operator new(size_t,void* anAddress)
  38. {
  39. return anAddress;
  40. }
  41. void* operator new(size_t size)
  42. {
  43. return Standard::Allocate(size);
  44. }
  45. void operator delete(void *anAddress)
  46. {
  47. if (anAddress) Standard::Free((Standard_Address&)anAddress);
  48. }
  49. // Methods PUBLIC
  50. //
  51. Standard_EXPORT BlockFix_UnionEdges();
  52. Standard_EXPORT TopoDS_Shape Perform(const TopoDS_Shape& Shape,const Standard_Real Tol) ;
  53. protected:
  54. // Methods PROTECTED
  55. //
  56. // Fields PROTECTED
  57. //
  58. private:
  59. // Methods PRIVATE
  60. //
  61. // Fields PRIVATE
  62. //
  63. Standard_Real myTolerance;
  64. Handle_ShapeBuild_ReShape myContext;
  65. };
  66. // other Inline functions and methods (like "C++: function call" methods)
  67. //
  68. #endif