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 <TopAbs_State.hxx>
28 #include <BRepClass3d_Intersector3d.hxx>
29 #include <TopAbs_Orientation.hxx>
30 class Standard_DomainError;
31 class BRepClass3d_Intersector3d;
37 class BRepClass3d_SolidPassiveClassifier
44 //! Creates an undefined classifier.
45 Standard_EXPORT BRepClass3d_SolidPassiveClassifier();
47 //! Starts a classification process. The point to
48 //! classify is the origin of the line <L>. <P> is
49 //! the original length of the segment on <L> used to
50 //! compute intersections. <Tol> is the tolerance
51 //! attached to the intersections.
52 Standard_EXPORT void Reset (const gp_Lin& L, const Standard_Real P, const Standard_Real Tol);
54 //! Updates the classification process with the face
55 //! <F> from the boundary.
56 Standard_EXPORT void Compare (const TopoDS_Face& F, const TopAbs_Orientation Or);
58 //! Returns the current value of the parameter.
59 Standard_Real Parameter() const;
61 //! Returns True if an intersection is computed.
62 Standard_Boolean HasIntersection() const;
64 //! Returns the intersecting algorithm.
65 BRepClass3d_Intersector3d& Intersector();
67 //! Returns the current state of the point.
68 TopAbs_State State() const;
83 Standard_Boolean isSet;
86 Standard_Real myParam;
87 Standard_Real myTolerance;
89 Standard_Boolean hasIntersect;
90 BRepClass3d_Intersector3d myIntersector;
95 #define TheIntersector BRepClass3d_Intersector3d
96 #define TheIntersector_hxx <BRepClass3d_Intersector3d.hxx>
97 #define TopClass_Classifier3d BRepClass3d_SolidPassiveClassifier
98 #define TopClass_Classifier3d_hxx <BRepClass3d_SolidPassiveClassifier.hxx>
100 #include <TopClass_Classifier3d.lxx>
102 #undef TheIntersector
103 #undef TheIntersector_hxx
104 #undef TopClass_Classifier3d
105 #undef TopClass_Classifier3d_hxx
110 #endif // _BRepClass3d_SolidPassiveClassifier_HeaderFile