0030281: Regression to 7.2.0: Modeling Algorithms - Wrong result of CUT operation
[occt.git] / src / BRepMesh / BRepMesh_Classifier.hxx
CommitLineData
01a6e62b 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
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _BRepMesh_Classifier_HeaderFile
18#define _BRepMesh_Classifier_HeaderFile
19
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>
848fa7e3 27#include <gp_Pnt2d.hxx>
01a6e62b 28
29//! Auxilary class contains information about correctness of discretized
30//! face and used for classification of points regarding face internals.
31class BRepMesh_Classifier
32{
33public:
34
35 DEFINE_STANDARD_ALLOC
36
37 //! Constructor.
38 Standard_EXPORT BRepMesh_Classifier();
39
40 //! Destructor.
0f57ab75 41 virtual ~BRepMesh_Classifier()
01a6e62b 42 {
43 Destroy();
44 }
45
46 //! Method is called on destruction.
47 //! Clears internal data structures.
48 Standard_EXPORT void Destroy();
49
50 //! Performs classification of the given point regarding to face internals.
848fa7e3 51 //! @param thePoint Point in parametric space to be classified.
52 //! @return
01a6e62b 53 Standard_EXPORT TopAbs_State Perform(const gp_Pnt2d& thePoint) const;
54
55 //! Registers wire specified by sequence of points for
56 //! further classification of points.
848fa7e3 57 //! @param theWire Wire to be registered. Specified by sequence of points.
58 //! @param theTolUV Tolerance to be used for calculations in parametric space.
59 //! @param theUmin Lower U boundary of the face in parametric space.
60 //! @param theUmax Upper U boundary of the face in parametric space.
61 //! @param theVmin Lower V boundary of the face in parametric space.
62 //! @param theVmax Upper V boundary of the face in parametric space.
63 Standard_EXPORT void RegisterWire(
01a6e62b 64 const NCollection_Sequence<gp_Pnt2d>& theWire,
65 const Standard_Real theTolUV,
66 const Standard_Real theUmin,
67 const Standard_Real theUmax,
68 const Standard_Real theVmin,
69 const Standard_Real theVmax);
70
71private:
72
73 BRepTopAdaptor_SeqOfPtr myTabClass;
74 TColStd_SequenceOfBoolean myTabOrient;
75};
76
77#endif