/src/contrib/geom-5.1.2.7/src/GEOMAlgo/GEOMAlgo_Tools.cdl

http://pythonocc.googlecode.com/ · Unknown · 113 lines · 96 code · 17 blank · 0 comment · 0 complexity · 182df0a553f787a5bbcc0d345ae82c74 MD5 · raw file

  1. -- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
  2. --
  3. -- Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  4. -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  5. --
  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.
  10. --
  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.
  15. --
  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
  19. --
  20. -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
  21. --
  22. -- File: GEOMAlgo_Tools.cdl
  23. -- Created: Mon Dec 6 11:26:02 2004
  24. -- Author: Peter KURNEV
  25. -- <pkv@irinox>
  26. --
  27. class Tools from GEOMAlgo
  28. ---Purpose:
  29. uses
  30. Pnt from gp,
  31. Surface from Geom,
  32. ShapeEnum from TopAbs,
  33. Edge from TopoDS,
  34. Face from TopoDS,
  35. Shape from TopoDS,
  36. ListOfShape from TopTools,
  37. IndexedDataMapOfShapeListOfShape from TopTools,
  38. Context from IntTools,
  39. IndexedDataMapOfPassKeyShapeListOfShape from GEOMAlgo --qft
  40. --raises
  41. is
  42. IsCompositeShape(myclass;
  43. aS :Shape from TopoDS)
  44. returns Boolean from Standard;
  45. RefineSDShapes(myclass;
  46. aMSD:out IndexedDataMapOfPassKeyShapeListOfShape from GEOMAlgo; --qft
  47. aTol:Real from Standard;
  48. aCtx:out Context from IntTools)
  49. returns Integer from Standard;
  50. FindSDShapes(myclass;
  51. aLE :ListOfShape from TopTools;
  52. aTol:Real from Standard;
  53. aMEE:out IndexedDataMapOfShapeListOfShape from TopTools;
  54. aCtx:out Context from IntTools)
  55. returns Integer from Standard;
  56. FindSDShapes(myclass;
  57. aE1 :Shape from TopoDS;
  58. aLE :ListOfShape from TopTools;
  59. aTol :Real from Standard;
  60. aLESD :out ListOfShape from TopTools;
  61. aCtx :out Context from IntTools)
  62. returns Integer from Standard;
  63. ProjectPointOnShape(myclass;
  64. aP1: Pnt from gp;
  65. aS :Shape from TopoDS;
  66. aP2:out Pnt from gp;
  67. aCtx :out Context from IntTools)
  68. returns Boolean from Standard;
  69. PointOnShape(myclass;
  70. aS :Shape from TopoDS;
  71. aP3D:out Pnt from gp);
  72. PointOnEdge(myclass;
  73. aE :Edge from TopoDS;
  74. aP3D:out Pnt from gp);
  75. PointOnEdge(myclass;
  76. aE :Edge from TopoDS;
  77. aT :Real from Standard;
  78. aP3D:out Pnt from gp);
  79. PointOnFace(myclass;
  80. aF :Face from TopoDS;
  81. aP3D:out Pnt from gp);
  82. PointOnFace(myclass;
  83. aF :Face from TopoDS;
  84. aU :Real from Standard;
  85. aV :Real from Standard;
  86. aP3D:out Pnt from gp);
  87. RefinePCurveForEdgeOnFace (myclass;
  88. aE : Edge from TopoDS;
  89. aF : Face from TopoDS;
  90. aU1 : Real from Standard;
  91. aU2 : Real from Standard);
  92. IsUPeriodic(myclass;
  93. aS:Surface from Geom)
  94. returns Boolean from Standard;
  95. --fields
  96. end Tools;