// 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 _TopClass_SolidExplorer_HeaderFile #define _TopClass_SolidExplorer_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class gp_Pnt; class gp_Lin; class TopoDS_Face; //! Provide an exploration of a BRep Shape for the
//! classification.
class TopClass_SolidExplorer { 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); } //! Should return True if the point is outside a
//! bounding volume of the shape.
Standard_EXPORT virtual Standard_Boolean Reject(const gp_Pnt& P) const = 0; //! Returns in , a segment having at least
//! one intersection with the shape boundary to
//! compute intersections.
//!
Standard_EXPORT virtual void Segment(const gp_Pnt& P,gp_Lin& L,Standard_Real& Par) = 0; //! Returns in , a segment having at least
//! one intersection with the shape boundary to
//! compute intersections.
//!
//! The First Call to this method returns a line which
//! point to a point of the first face of the shape.
//! The Second Call provide a line to the second face
//! and so on.
//!
//! if the method is called N times on a shape with F
//! faces (N>F) the line point to other points on the
//! face 1,2,3 ... N
Standard_EXPORT virtual void OtherSegment(const gp_Pnt& P,gp_Lin& L,Standard_Real& Par) = 0; //! Starts an exploration of the shells.
Standard_EXPORT virtual void InitShell() = 0; //! Returns True if there is a current shell.
Standard_EXPORT virtual Standard_Boolean MoreShells() const = 0; //! Sets the explorer to the next shell and returns
//! False if there are no more wires.
Standard_EXPORT virtual void NextShell() = 0; //! Returns True if the shell bounding volume does not
//! intersect the segment.
Standard_EXPORT virtual Standard_Boolean RejectShell(const gp_Lin& L,const Standard_Real Par) const = 0; //! Starts an exploration of the faces.
Standard_EXPORT virtual void InitFace() = 0; //! Returns True if there is a current face.
Standard_EXPORT virtual Standard_Boolean MoreFaces() const = 0; //! Sets the explorer to the next face and returns
//! False if there are no more wires.
Standard_EXPORT virtual void NextFace() = 0; //! Returns the current face.
Standard_EXPORT virtual TopoDS_Face CurrentFace() const = 0; //! Returns True if the face bounding volume does not
//! intersect the segment.
Standard_EXPORT virtual Standard_Boolean RejectFace(const gp_Lin& L,const Standard_Real Par) const = 0; protected: private: }; // other Inline functions and methods (like "C++: function call" methods) #endif