// Created on: 1994-04-18 // Created by: Laurent BUCHARD // Copyright (c) 1994-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _BRepClass3d_SolidPassiveClassifier_HeaderFile #define _BRepClass3d_SolidPassiveClassifier_HeaderFile #include #include #include #include #include #include #include #include #include #include class Standard_DomainError; class BRepClass3d_Intersector3d; class gp_Lin; class TopoDS_Face; class BRepClass3d_SolidPassiveClassifier { public: DEFINE_STANDARD_ALLOC //! Creates an undefined classifier. Standard_EXPORT BRepClass3d_SolidPassiveClassifier(); //! Starts a classification process. The point to //! classify is the origin of the line .

is //! the original length of the segment on used to //! compute intersections. is the tolerance //! attached to the intersections. Standard_EXPORT void Reset (const gp_Lin& L, const Standard_Real P, const Standard_Real Tol); //! Updates the classification process with the face //! from the boundary. Standard_EXPORT void Compare (const TopoDS_Face& F, const TopAbs_Orientation Or); //! Returns the current value of the parameter. Standard_Real Parameter() const; //! Returns True if an intersection is computed. Standard_Boolean HasIntersection() const; //! Returns the intersecting algorithm. BRepClass3d_Intersector3d& Intersector(); //! Returns the current state of the point. TopAbs_State State() const; protected: private: Standard_Boolean isSet; TopoDS_Face myFace; gp_Lin myLin; Standard_Real myParam; Standard_Real myTolerance; TopAbs_State myState; Standard_Boolean hasIntersect; BRepClass3d_Intersector3d myIntersector; }; #define TheIntersector BRepClass3d_Intersector3d #define TheIntersector_hxx #define TopClass_Classifier3d BRepClass3d_SolidPassiveClassifier #define TopClass_Classifier3d_hxx #include #undef TheIntersector #undef TheIntersector_hxx #undef TopClass_Classifier3d #undef TopClass_Classifier3d_hxx #endif // _BRepClass3d_SolidPassiveClassifier_HeaderFile