Version: 9.16.0
GEOMImpl_IHealingOperations.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, 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, or (at your option) any later version.
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
23#ifndef _GEOMImpl_IHealingOperations_HXX_
24#define _GEOMImpl_IHealingOperations_HXX_
25
26#include "GEOM_IOperations.hxx"
27#include "GEOM_Engine.hxx"
28#include "GEOM_Object.hxx"
29
30#include <TopAbs.hxx>
31#include <TColStd_HArray1OfExtendedString.hxx>
32#include <TColStd_HArray1OfInteger.hxx>
33
34#include <list>
35
37
39 public:
40 Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine);
41 Standard_EXPORT ~GEOMImpl_IHealingOperations();
42
43 // Apply Shape Processing to the selected Object
44 Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
45 const Handle(TColStd_HArray1OfExtendedString)& theOperations,
46 const Handle(TColStd_HArray1OfExtendedString)& theParams,
47 const Handle(TColStd_HArray1OfExtendedString)& theValues );
48
49 // Retrieve default Shape Process parameters (from resource file)
50 Standard_EXPORT void GetShapeProcessParameters( std::list<std::string>& theOperations,
51 std::list<std::string>& theParams,
52 std::list<std::string>& theValues );
53
54 // Retrieve default Shape Process parameters for given operator
55 Standard_EXPORT bool GetOperatorParameters( const std::string& theOperation,
56 std::list<std::string>& theParams,
57 std::list<std::string>& theValues );
58
59 // returns all parameters that are valid for the given operation (Shape Process operator)
60 Standard_EXPORT static bool GetParameters( const std::string theOperation,
61 std::list<std::string>& theParams );
62
63 Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
64 const Handle(TColStd_HArray1OfInteger)& theFaces);
65
66 Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
67 const Handle(TColStd_HArray1OfInteger)& theWires,
69
70 Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
71 const Handle(TColStd_HArray1OfInteger)& theWires);
72
73 Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
74 const Handle(TColStd_HArray1OfInteger)& theWires);
75
76 Standard_EXPORT Handle(GEOM_Object) Sew( std::list<Handle(GEOM_Object)> & theObject,
77 double theTolerance,
78 bool isAllowNonManifold);
79
80 Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces (std::list< Handle(GEOM_Object)> & theSolids);
81
82 Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
84 double theValue,
86
87 Standard_EXPORT Handle(GEOM_Object) DivideEdgeByPoint( Handle(GEOM_Object) theObject,
89 std::list<Handle(GEOM_Object)>& thePoint );
90
91 Standard_EXPORT Handle(GEOM_Object) FuseCollinearEdgesWithinWire
92 (Handle(GEOM_Object) theWire,
93 std::list<Handle(GEOM_Object)> theVertices);
94
95 // this function does not use Function-Driver mechanism, it just computes the free
96 // boundary edges and returns them in the sequence. It is called just for information reasons
97 // and it's not intended for history/undo/redo/etc..
98 Standard_EXPORT bool GetFreeBoundary ( Handle(TColStd_HSequenceOfTransient)& theObjects,
99 Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
100 Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
101
102 Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
103 Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);
104
105 Standard_EXPORT Handle(GEOM_Object) LimitTolerance( Handle(GEOM_Object) theObject,
108
109 // This function doesn't do any healing.
110 // The only goal is to provide Python dump functionality for
111 // algorithms entirely implemented in Python.
112 Standard_EXPORT void FuncToPythonDump(
113 Handle(GEOM_Object) theObject,
114 Handle(GEOM_Object) result,
115 const char* imports,
116 const char* funcName,
117 const char* args
118 );
119
121
122private:
123
125};
126
127#endif
Definition: GEOMImpl_IHealingOperations.hxx:38
Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine *theEngine)
Definition: GEOMImpl_IHealingOperations.cxx:60
ShHealOper_ModifStats * myModifStats
Definition: GEOMImpl_IHealingOperations.hxx:124
Standard_EXPORT const Handle(TColStd_HArray1OfExtendedString) &theOperations
Standard_EXPORT double theTolerance
Definition: GEOMImpl_IHealingOperations.hxx:106
Standard_EXPORT Handle(GEOM_Object) ShapeProcess(Handle(GEOM_Object) theObject
Standard_EXPORT bool GetOperatorParameters(const std::string &theOperation, std::list< std::string > &theParams, std::list< std::string > &theValues)
Definition: GEOMImpl_IHealingOperations.cxx:222
Standard_EXPORT bool GetFreeBoundary(Handle(TColStd_HSequenceOfTransient)&theObjects, Handle(TColStd_HSequenceOfTransient)&theOutClosedWires, Handle(TColStd_HSequenceOfTransient)&theOutOpenWires)
Definition: GEOMImpl_IHealingOperations.cxx:915
Standard_EXPORT Handle(GEOM_Object) FillHoles(Handle(GEOM_Object) theObject
Standard_EXPORT std::list< Handle(GEOM_Object)> theVertices
Definition: GEOMImpl_IHealingOperations.hxx:93
Standard_EXPORT const Handle(TColStd_HArray1OfInteger) &theFaces)
Standard_EXPORT Handle(GEOM_Object) DivideEdgeByPoint(Handle(GEOM_Object) theObject
static Standard_EXPORT bool GetParameters(const std::string theOperation, std::list< std::string > &theParams)
Definition: GEOMImpl_IHealingOperations.cxx:258
Standard_EXPORT const const Handle(TColStd_HArray1OfExtendedString) &theParams
Standard_EXPORT int std::list< Handle(GEOM_Object)> & thePoint
Definition: GEOMImpl_IHealingOperations.hxx:89
Standard_EXPORT const Handle(TColStd_HArray1OfInteger) &theWires
Standard_EXPORT Handle(GEOM_Object) CloseContour(Handle(GEOM_Object) theObject
Standard_EXPORT Handle(GEOM_Object) RemoveIntWires(Handle(GEOM_Object) theObject
Standard_EXPORT Handle(GEOM_Object) FuseCollinearEdgesWithinWire(Handle(GEOM_Object) theWire
Standard_EXPORT Handle(GEOM_Object) Sew(std Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces(std Standard_EXPORT int theIndex
Definition: GEOMImpl_IHealingOperations.hxx:83
Standard_EXPORT Handle(GEOM_Object) Sew(std Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces(std Standard_EXPORT int double bool isByParameter
Definition: GEOMImpl_IHealingOperations.hxx:85
Standard_EXPORT Handle(GEOM_Object) SuppressFaces(Handle(GEOM_Object) theObject
Standard_EXPORT const const const Handle(TColStd_HArray1OfExtendedString) &theValues)
Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy(Handle(GEOM_Object) theObject)
Standard_EXPORT ~GEOMImpl_IHealingOperations()
Definition: GEOMImpl_IHealingOperations.cxx:72
Standard_EXPORT Handle(GEOM_Object) Sew(std Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces(std Standard_EXPORT int double theValue
Definition: GEOMImpl_IHealingOperations.hxx:84
Standard_EXPORT Handle(GEOM_Object) ChangeOrientation(Handle(GEOM_Object) theObject)
Standard_EXPORT void GetShapeProcessParameters(std::list< std::string > &theOperations, std::list< std::string > &theParams, std::list< std::string > &theValues)
Definition: GEOMImpl_IHealingOperations.cxx:187
Standard_EXPORT double bool theExactAdjust
Definition: GEOMImpl_IHealingOperations.hxx:107
Standard_EXPORT void FuncToPythonDump(Handle(GEOM_Object) theObject, Handle(GEOM_Object) result, const char *imports, const char *funcName, const char *args)
Definition: GEOMImpl_IHealingOperations.cxx:1225
const ShHealOper_ModifStats * GetStatistics()
Definition: GEOMImpl_IHealingOperations.hxx:120
Standard_EXPORT const bool isCommonVertex
Definition: GEOMImpl_IHealingOperations.hxx:68
Standard_EXPORT const Handle(TColStd_HArray1OfInteger) &theWires)
Standard_EXPORT Handle(GEOM_Object) LimitTolerance(Handle(GEOM_Object) theObject
Standard_EXPORT Handle(GEOM_Object) Sew(std Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces(std Standard_EXPORT Handle(GEOM_Object) DivideEdge(Handle(GEOM_Object) theObject
Definition: GEOM_Engine.hxx:91
Definition: GEOM_IOperations.hxx:40
Structure describing modifications done in a shape.
Definition: ShHealOper_ModifStats.hxx:36