0030754: Coding - the array of weights should begin with Lower, not the constant...
[occt.git] / src / BRepMesh / BRepMesh_Classifier.hxx
7bd071ed 1// Created on: 2016-07-07
2// Copyright (c) 2016 OPEN CASCADE SAS
01a6e62b 3// Created by: Oleg AGASHIN
01a6e62b 4//
5// This file is part of Open CASCADE Technology software library.
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
16#ifndef _BRepMesh_Classifier_HeaderFile
17#define _BRepMesh_Classifier_HeaderFile
19#include <Standard.hxx>
01a6e62b 20#include <Standard_Macro.hxx>
01a6e62b 21#include <TopAbs_State.hxx>
7bd071ed 22#include <IMeshData_Types.hxx>
23#include <NCollection_Handle.hxx>
01a6e62b 24
7bd071ed 25#include <memory>
27class gp_Pnt2d;
28class CSLib_Class2d;
30//! Auxilary class intended for classification of points
31//! regarding internals of discrete face.
32class BRepMesh_Classifier : public Standard_Transient
01a6e62b 33{
01a6e62b 36 //! Constructor.
37 Standard_EXPORT BRepMesh_Classifier();
39 //! Destructor.
7bd071ed 40 Standard_EXPORT virtual ~BRepMesh_Classifier();
01a6e62b 41
42 //! Performs classification of the given point regarding to face internals.
848fa7e3 43 //! @param thePoint Point in parametric space to be classified.
7bd071ed 44 //! @return TopAbs_IN if point lies within face boundaries and TopAbs_OUT elsewhere.
01a6e62b 45 Standard_EXPORT TopAbs_State Perform(const gp_Pnt2d& thePoint) const;
47 //! Registers wire specified by sequence of points for
48 //! further classification of points.
848fa7e3 49 //! @param theWire Wire to be registered. Specified by sequence of points.
50 //! @param theTolUV Tolerance to be used for calculations in parametric space.
51 //! @param theUmin Lower U boundary of the face in parametric space.
52 //! @param theUmax Upper U boundary of the face in parametric space.
53 //! @param theVmin Lower V boundary of the face in parametric space.
54 //! @param theVmax Upper V boundary of the face in parametric space.
55 Standard_EXPORT void RegisterWire(
7bd071ed 56 const NCollection_Sequence<const gp_Pnt2d*>& theWire,
57 const std::pair<Standard_Real, Standard_Real>& theTolUV,
58 const std::pair<Standard_Real, Standard_Real>& theRangeU,
59 const std::pair<Standard_Real, Standard_Real>& theRangeV);
61 DEFINE_STANDARD_RTTI_INLINE (BRepMesh_Classifier, Standard_Transient)
01a6e62b 62
7bd071ed 65 NCollection_Vector<NCollection_Handle<CSLib_Class2d> > myTabClass;
66 IMeshData::VectorOfBoolean myTabOrient;
01a6e62b 67};