2024-01-20 13:51:38 +00:00
|
|
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
2005-12-05 16:23:52 +00:00
|
|
|
//
|
2012-08-09 07:58:02 +00:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2005-12-05 16:23:52 +00:00
|
|
|
//
|
2012-08-09 07:58:02 +00:00
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
2014-02-18 10:44:41 +04:00
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
2009-02-13 12:16:39 +00:00
|
|
|
//
|
2012-08-09 07:58:02 +00:00
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
2009-02-13 12:16:39 +00:00
|
|
|
//
|
2012-08-09 07:58:02 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2005-12-05 16:23:52 +00:00
|
|
|
//
|
2012-08-09 07:58:02 +00:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2013-04-01 12:25:01 +00:00
|
|
|
//
|
2012-08-09 07:58:02 +00:00
|
|
|
|
2004-12-01 10:39:14 +00:00
|
|
|
#ifndef _GEOMImpl_IHealingOperations_HXX_
|
|
|
|
#define _GEOMImpl_IHealingOperations_HXX_
|
|
|
|
|
|
|
|
#include "GEOM_IOperations.hxx"
|
|
|
|
#include "GEOM_Engine.hxx"
|
|
|
|
#include "GEOM_Object.hxx"
|
|
|
|
|
2014-12-08 11:57:28 +03:00
|
|
|
#include <TopAbs.hxx>
|
2004-12-01 10:39:14 +00:00
|
|
|
#include <TColStd_HArray1OfExtendedString.hxx>
|
|
|
|
#include <TColStd_HArray1OfInteger.hxx>
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
2014-12-10 19:07:28 +03:00
|
|
|
class ShHealOper_ModifStats;
|
|
|
|
|
2004-12-01 10:39:14 +00:00
|
|
|
class GEOMImpl_IHealingOperations : public GEOM_IOperations {
|
|
|
|
public:
|
2017-06-13 12:57:14 +03:00
|
|
|
Standard_EXPORT GEOMImpl_IHealingOperations(GEOM_Engine* theEngine);
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT ~GEOMImpl_IHealingOperations();
|
2004-12-01 10:39:14 +00:00
|
|
|
|
|
|
|
// Apply Shape Processing to the selected Object
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) ShapeProcess( Handle(GEOM_Object) theObject,
|
2012-08-09 07:58:02 +00:00
|
|
|
const Handle(TColStd_HArray1OfExtendedString)& theOperations,
|
|
|
|
const Handle(TColStd_HArray1OfExtendedString)& theParams,
|
|
|
|
const Handle(TColStd_HArray1OfExtendedString)& theValues );
|
2004-12-01 10:39:14 +00:00
|
|
|
|
|
|
|
// Retrieve default Shape Process parameters (from resource file)
|
2009-02-13 12:16:39 +00:00
|
|
|
Standard_EXPORT void GetShapeProcessParameters( std::list<std::string>& theOperations,
|
|
|
|
std::list<std::string>& theParams,
|
|
|
|
std::list<std::string>& theValues );
|
2004-12-01 10:39:14 +00:00
|
|
|
|
2005-01-24 16:00:40 +00:00
|
|
|
// Retrieve default Shape Process parameters for given operator
|
2013-06-17 12:48:13 +00:00
|
|
|
Standard_EXPORT bool GetOperatorParameters( const std::string& theOperation,
|
2009-02-13 12:16:39 +00:00
|
|
|
std::list<std::string>& theParams,
|
|
|
|
std::list<std::string>& theValues );
|
2005-01-24 16:00:40 +00:00
|
|
|
|
2004-12-01 10:39:14 +00:00
|
|
|
// returns all parameters that are valid for the given operation (Shape Process operator)
|
2012-08-09 07:58:02 +00:00
|
|
|
Standard_EXPORT static bool GetParameters( const std::string theOperation,
|
|
|
|
std::list<std::string>& theParams );
|
2004-12-01 10:39:14 +00:00
|
|
|
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
|
2004-12-01 10:39:14 +00:00
|
|
|
const Handle(TColStd_HArray1OfInteger)& theFaces);
|
|
|
|
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) CloseContour( Handle(GEOM_Object) theObject,
|
2004-12-01 10:39:14 +00:00
|
|
|
const Handle(TColStd_HArray1OfInteger)& theWires,
|
|
|
|
bool isCommonVertex );
|
|
|
|
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) RemoveIntWires( Handle(GEOM_Object) theObject,
|
2004-12-01 10:39:14 +00:00
|
|
|
const Handle(TColStd_HArray1OfInteger)& theWires);
|
|
|
|
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) FillHoles( Handle(GEOM_Object) theObject,
|
2004-12-01 10:39:14 +00:00
|
|
|
const Handle(TColStd_HArray1OfInteger)& theWires);
|
2012-08-09 07:58:02 +00:00
|
|
|
|
2014-10-09 18:34:57 +04:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) Sew( std::list<Handle(GEOM_Object)> & theObject,
|
|
|
|
double theTolerance,
|
|
|
|
bool isAllowNonManifold);
|
2004-12-01 10:39:14 +00:00
|
|
|
|
2014-10-16 14:36:46 +04:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) RemoveInternalFaces (std::list< Handle(GEOM_Object)> & theSolids);
|
2013-06-14 12:20:21 +00:00
|
|
|
|
2005-08-11 04:43:57 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) DivideEdge( Handle(GEOM_Object) theObject,
|
2014-10-21 20:06:51 +04:00
|
|
|
int theIndex,
|
|
|
|
double theValue,
|
|
|
|
bool isByParameter );
|
|
|
|
|
2014-12-10 19:07:28 +03:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) DivideEdgeByPoint( Handle(GEOM_Object) theObject,
|
|
|
|
int theIndex,
|
|
|
|
std::list<Handle(GEOM_Object)>& thePoint );
|
2012-08-09 07:58:02 +00:00
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) FuseCollinearEdgesWithinWire
|
|
|
|
(Handle(GEOM_Object) theWire,
|
|
|
|
std::list<Handle(GEOM_Object)> theVertices);
|
2004-12-01 10:39:14 +00:00
|
|
|
|
|
|
|
// this function does not use Function-Driver mechanism, it just computes the free
|
|
|
|
// boundary edges and returns them in the sequence. It is called just for information reasons
|
|
|
|
// and it's not intended for history/undo/redo/etc..
|
2014-10-09 18:34:57 +04:00
|
|
|
Standard_EXPORT bool GetFreeBoundary ( Handle(TColStd_HSequenceOfTransient)& theObjects,
|
|
|
|
Handle(TColStd_HSequenceOfTransient)& theOutClosedWires,
|
|
|
|
Handle(TColStd_HSequenceOfTransient)& theOutOpenWires );
|
2008-03-07 07:45:34 +00:00
|
|
|
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) ChangeOrientation( Handle(GEOM_Object) theObject);
|
|
|
|
Standard_EXPORT Handle(GEOM_Object) ChangeOrientationCopy( Handle(GEOM_Object) theObject);
|
|
|
|
|
2012-08-09 07:58:02 +00:00
|
|
|
Standard_EXPORT Handle(GEOM_Object) LimitTolerance( Handle(GEOM_Object) theObject,
|
2014-12-08 11:57:28 +03:00
|
|
|
double theTolerance,
|
|
|
|
TopAbs_ShapeEnum theType = TopAbs_SHAPE );
|
2012-08-09 07:58:02 +00:00
|
|
|
|
2024-04-04 11:49:08 +02:00
|
|
|
// This function doesn't do any healing.
|
|
|
|
// The only goal is to provide Python dump functionality for
|
|
|
|
// algorithms entirely implemented in Python.
|
2024-04-08 09:27:15 +02:00
|
|
|
Standard_EXPORT void FuncToPythonDump(
|
2024-04-04 11:49:08 +02:00
|
|
|
Handle(GEOM_Object) theObject,
|
|
|
|
Handle(GEOM_Object) result,
|
|
|
|
const char* imports,
|
|
|
|
const char* funcName,
|
|
|
|
const char* args
|
|
|
|
);
|
|
|
|
|
2014-12-10 19:07:28 +03:00
|
|
|
const ShHealOper_ModifStats* GetStatistics() { return myModifStats; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
ShHealOper_ModifStats* myModifStats;
|
2004-12-01 10:39:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|