1 // Created on: 1994-04-18
2 // Created by: Laurent BUCHARD
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRepClass3d_SolidPassiveClassifier_HeaderFile
18 #define _BRepClass3d_SolidPassiveClassifier_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <Standard_Boolean.hxx>
25 #include <TopoDS_Face.hxx>
27 #include <Standard_Real.hxx>
28 #include <TopAbs_State.hxx>
29 #include <BRepClass3d_Intersector3d.hxx>
30 #include <TopAbs_Orientation.hxx>
31 class Standard_DomainError;
32 class BRepClass3d_Intersector3d;
38 class BRepClass3d_SolidPassiveClassifier
45 //! Creates an undefined classifier.
46 Standard_EXPORT BRepClass3d_SolidPassiveClassifier();
48 //! Starts a classification process. The point to
49 //! classify is the origin of the line <L>. <P> is
50 //! the original length of the segment on <L> used to
51 //! compute intersections. <Tol> is the tolerance
52 //! attached to the intersections.
53 Standard_EXPORT void Reset (const gp_Lin& L, const Standard_Real P, const Standard_Real Tol);
55 //! Updates the classification process with the face
56 //! <F> from the boundary.
57 Standard_EXPORT void Compare (const TopoDS_Face& F, const TopAbs_Orientation Or);
59 //! Returns the current value of the parameter.
60 Standard_Real Parameter() const;
62 //! Returns True if an intersection is computed.
63 Standard_Boolean HasIntersection() const;
65 //! Returns the intersecting algorithm.
66 BRepClass3d_Intersector3d& Intersector();
68 //! Returns the current state of the point.
69 TopAbs_State State() const;
84 Standard_Boolean isSet;
87 Standard_Real myParam;
88 Standard_Real myTolerance;
90 Standard_Boolean hasIntersect;
91 BRepClass3d_Intersector3d myIntersector;
96 #define TheIntersector BRepClass3d_Intersector3d
97 #define TheIntersector_hxx <BRepClass3d_Intersector3d.hxx>
98 #define TopClass_Classifier3d BRepClass3d_SolidPassiveClassifier
99 #define TopClass_Classifier3d_hxx <BRepClass3d_SolidPassiveClassifier.hxx>
101 #include <TopClass_Classifier3d.lxx>
103 #undef TheIntersector
104 #undef TheIntersector_hxx
105 #undef TopClass_Classifier3d
106 #undef TopClass_Classifier3d_hxx
111 #endif // _BRepClass3d_SolidPassiveClassifier_HeaderFile