// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _LocOpe_SplitShape_HeaderFile #define _LocOpe_SplitShape_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _TopoDS_Shape_HeaderFile #include #endif #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile #include #endif #ifndef _TopTools_MapOfShape_HeaderFile #include #endif #ifndef _TopTools_ListOfShape_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class StdFail_NotDone; class Standard_ConstructionError; class Standard_NoSuchObject; class TopoDS_Shape; class TopoDS_Edge; class TopoDS_Vertex; class TopoDS_Wire; class TopoDS_Face; class TopTools_ListOfShape; //! Provides a tool to cut :
//! - edges with a vertices,
//! - faces with wires,
//! and rebuilds the shape containing the edges and
//! the faces.
class LocOpe_SplitShape { 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); } //! Empty constructor.
LocOpe_SplitShape(); //! Creates the process with the shape .
LocOpe_SplitShape(const TopoDS_Shape& S); //! Initializes the process on the shape .
Standard_EXPORT void Init(const TopoDS_Shape& S) ; //! Tests if it is possible to split the edge .
Standard_EXPORT Standard_Boolean CanSplit(const TopoDS_Edge& E) const; //! Adds the vertex on the edge , at parameter

.
Standard_EXPORT void Add(const TopoDS_Vertex& V,const Standard_Real P,const TopoDS_Edge& E) ; //! Adds the wire on the face .
Standard_EXPORT void Add(const TopoDS_Wire& W,const TopoDS_Face& F) ; //! Returns the "original" shape.
const TopoDS_Shape& Shape() const; //! Returns the list of descendant shapes of .
Standard_EXPORT const TopTools_ListOfShape& DescendantShapes(const TopoDS_Shape& S) ; //! Returns the "left" part defined by the wire on
//! the face . The returned list of shape is in
//! fact a list of faces. The face is considered
//! with its topological orientation in the original
//! shape. is considered with its orientation.
Standard_EXPORT const TopTools_ListOfShape& LeftOf(const TopoDS_Wire& W,const TopoDS_Face& F) ; protected: private: Standard_EXPORT void AddOpenWire(const TopoDS_Wire& W,const TopoDS_Face& F) ; Standard_EXPORT void AddClosedWire(const TopoDS_Wire& W,const TopoDS_Face& F) ; Standard_EXPORT void Put(const TopoDS_Shape& S) ; Standard_EXPORT Standard_Boolean Rebuild(const TopoDS_Shape& S) ; Standard_Boolean myDone; TopoDS_Shape myShape; TopTools_DataMapOfShapeListOfShape myMap; TopTools_MapOfShape myDblE; TopTools_ListOfShape myLeft; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif