mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-12 05:40:48 +05:00
144 lines
3.8 KiB
C++
144 lines
3.8 KiB
C++
![]() |
// File generated by CPPExt (Value)
|
||
|
// Copyright (C) 1991,1995 by
|
||
|
//
|
||
|
// MATRA DATAVISION, FRANCE
|
||
|
//
|
||
|
// This software is furnished in accordance with the terms and conditions
|
||
|
// of the contract and with the inclusion of the above copyright notice.
|
||
|
// This software or any other copy thereof may not be provided or otherwise
|
||
|
// be made available to any other person. No title to an ownership of the
|
||
|
// software is hereby transferred.
|
||
|
//
|
||
|
// At the termination of the contract, the software and all copies of this
|
||
|
// software must be deleted.
|
||
|
|
||
|
#ifndef _Partition_Spliter_HeaderFile
|
||
|
#define _Partition_Spliter_HeaderFile
|
||
|
|
||
|
#ifndef _TopAbs_ShapeEnum_HeaderFile
|
||
|
#include <TopAbs_ShapeEnum.hxx>
|
||
|
#endif
|
||
|
#ifndef _TopoDS_Compound_HeaderFile
|
||
|
#include <TopoDS_Compound.hxx>
|
||
|
#endif
|
||
|
#ifndef _BRep_Builder_HeaderFile
|
||
|
#include <BRep_Builder.hxx>
|
||
|
#endif
|
||
|
#ifndef _TopTools_ListOfShape_HeaderFile
|
||
|
#include <TopTools_ListOfShape.hxx>
|
||
|
#endif
|
||
|
#ifndef _TopTools_MapOfShape_HeaderFile
|
||
|
#include <TopTools_MapOfShape.hxx>
|
||
|
#endif
|
||
|
#ifndef _TopTools_DataMapOfShapeShape_HeaderFile
|
||
|
#include <TopTools_DataMapOfShapeShape.hxx>
|
||
|
#endif
|
||
|
#ifndef _Handle_BRepAlgo_AsDes_HeaderFile
|
||
|
#include <Handle_BRepAlgo_AsDes.hxx>
|
||
|
#endif
|
||
|
#ifndef _BRepAlgo_Image_HeaderFile
|
||
|
#include <BRepAlgo_Image.hxx>
|
||
|
#endif
|
||
|
#ifndef _Partition_Inter3d_HeaderFile
|
||
|
#include "Partition_Inter3d.hxx"
|
||
|
#endif
|
||
|
#ifndef _TopTools_MapOfOrientedShape_HeaderFile
|
||
|
#include <TopTools_MapOfOrientedShape.hxx>
|
||
|
#endif
|
||
|
#ifndef _Standard_Boolean_HeaderFile
|
||
|
#include <Standard_Boolean.hxx>
|
||
|
#endif
|
||
|
class BRepAlgo_AsDes;
|
||
|
class TopoDS_Shape;
|
||
|
class TopTools_ListOfShape;
|
||
|
class TopoDS_Edge;
|
||
|
|
||
|
|
||
|
#ifndef _Standard_HeaderFile
|
||
|
#include <Standard.hxx>
|
||
|
#endif
|
||
|
#ifndef _Standard_Macro_HeaderFile
|
||
|
#include <Standard_Macro.hxx>
|
||
|
#endif
|
||
|
|
||
|
class Partition_Spliter {
|
||
|
|
||
|
public:
|
||
|
|
||
|
void* operator new(size_t,void* anAddress)
|
||
|
{
|
||
|
return anAddress;
|
||
|
}
|
||
|
void* operator new(size_t size)
|
||
|
{
|
||
|
return Standard::Allocate(size);
|
||
|
}
|
||
|
void operator delete(void *anAddress)
|
||
|
{
|
||
|
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
||
|
}
|
||
|
// Methods PUBLIC
|
||
|
//
|
||
|
Standard_EXPORT Partition_Spliter();
|
||
|
Standard_EXPORT void AddShape(const TopoDS_Shape& S) ;
|
||
|
Standard_EXPORT void AddTool(const TopoDS_Shape& S) ;
|
||
|
Standard_EXPORT void Compute(const TopAbs_ShapeEnum Limit = TopAbs_SHAPE) ;
|
||
|
Standard_EXPORT void KeepShapesInside(const TopoDS_Shape& S) ;
|
||
|
Standard_EXPORT void RemoveShapesInside(const TopoDS_Shape& S) ;
|
||
|
Standard_EXPORT TopoDS_Shape Shape() const;
|
||
|
Standard_EXPORT void Clear() ;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
protected:
|
||
|
|
||
|
// Methods PROTECTED
|
||
|
//
|
||
|
|
||
|
|
||
|
// Fields PROTECTED
|
||
|
//
|
||
|
|
||
|
|
||
|
private:
|
||
|
|
||
|
// Methods PRIVATE
|
||
|
//
|
||
|
Standard_EXPORT void MakeShells(const TopoDS_Shape& S,TopTools_ListOfShape& NS) ;
|
||
|
Standard_EXPORT TopoDS_Shape MakeFaces(const TopoDS_Shape& S) ;
|
||
|
Standard_EXPORT void MakeEdges(const TopoDS_Edge& E,const TopTools_ListOfShape& VOnE,TopTools_ListOfShape& NE) const;
|
||
|
Standard_EXPORT TopoDS_Shape FindFacesInside(const TopoDS_Shape& S,const Standard_Boolean CheckClosed = Standard_False,const Standard_Boolean All = Standard_False) ;
|
||
|
Standard_EXPORT Standard_Boolean CheckTool(const TopoDS_Shape& S) ;
|
||
|
Standard_EXPORT void MergeEqualEdges(const TopTools_ListOfShape& LE) ;
|
||
|
|
||
|
|
||
|
// Fields PRIVATE
|
||
|
//
|
||
|
TopAbs_ShapeEnum myDoneStep;
|
||
|
TopoDS_Compound myShape;
|
||
|
BRep_Builder myBuilder;
|
||
|
TopTools_ListOfShape myListShapes;
|
||
|
TopTools_MapOfShape myMapFaces;
|
||
|
TopTools_MapOfShape myMapTools;
|
||
|
TopTools_DataMapOfShapeShape myFaceShapeMap;
|
||
|
TopTools_MapOfShape myNewSection;
|
||
|
Handle_BRepAlgo_AsDes myAsDes;
|
||
|
BRepAlgo_Image myImagesFaces;
|
||
|
BRepAlgo_Image myImagesEdges;
|
||
|
BRepAlgo_Image myImageShape;
|
||
|
Partition_Inter3d myInter3d;
|
||
|
TopTools_MapOfOrientedShape myAddedFacesMap;
|
||
|
TopTools_MapOfShape myEqualEdges;
|
||
|
TopTools_DataMapOfShapeShape myInternalFaces;
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
// other Inline functions and methods (like "C++: function call" methods)
|
||
|
//
|
||
|
|
||
|
|
||
|
#endif
|