1 // Created on: 2014-06-03
2 // Created by: Oleg AGASHIN
3 // Copyright (c) 1997-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 _BRepMesh_Classifier_HeaderFile
18 #define _BRepMesh_Classifier_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Macro.hxx>
23 #include <BRepTopAdaptor_SeqOfPtr.hxx>
24 #include <TColStd_SequenceOfBoolean.hxx>
25 #include <TopAbs_State.hxx>
26 #include <NCollection_Sequence.hxx>
29 class TColgp_SequenceOfPnt2d;
31 //! Auxilary class contains information about correctness of discretized
32 //! face and used for classification of points regarding face internals.
33 class BRepMesh_Classifier
40 Standard_EXPORT BRepMesh_Classifier();
43 ~BRepMesh_Classifier()
48 //! Method is called on destruction.
49 //! Clears internal data structures.
50 Standard_EXPORT void Destroy();
52 //! Performs classification of the given point regarding to face internals.
53 //! \param thePoint Point in parametric space to be classified.
55 Standard_EXPORT TopAbs_State Perform(const gp_Pnt2d& thePoint) const;
57 //! Registers wire specified by sequence of points for
58 //! further classification of points.
59 //! \param theWire Wire to be registered. Specified by sequence of points.
60 //! \param theTolUV Tolerance to be used for calculations in parametric space.
61 //! \param theUmin Lower U boundary of the face in parametric space.
62 //! \param theUmax Upper U boundary of the face in parametric space.
63 //! \param theVmin Lower V boundary of the face in parametric space.
64 //! \param theVmax Upper V boundary of the face in parametric space.
66 const NCollection_Sequence<gp_Pnt2d>& theWire,
67 const Standard_Real theTolUV,
68 const Standard_Real theUmin,
69 const Standard_Real theUmax,
70 const Standard_Real theVmin,
71 const Standard_Real theVmax);
75 BRepTopAdaptor_SeqOfPtr myTabClass;
76 TColStd_SequenceOfBoolean myTabOrient;