Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
AdvApprox_PrefAndRec Class Reference

inherits class Cutting; contains a list of preferential points (pi)i and a list of Recommended points used in cutting management. if Cutting is necessary in [a,b], we cut at the di nearest from (a+b)/2 More...

#include <AdvApprox_PrefAndRec.hxx>

Inheritance diagram for AdvApprox_PrefAndRec:
Inheritance graph
[legend]

Public Member Functions

 AdvApprox_PrefAndRec (const NCollection_Array1< double > &RecomendedCut, const NCollection_Array1< double > &PrefferedCut, const double Weight=5)
 
bool Value (const double a, const double b, double &cuttingvalue) const override
 cuting value is
 
- Public Member Functions inherited from AdvApprox_Cutting
virtual ~AdvApprox_Cutting ()
 

Detailed Description

inherits class Cutting; contains a list of preferential points (pi)i and a list of Recommended points used in cutting management. if Cutting is necessary in [a,b], we cut at the di nearest from (a+b)/2

Constructor & Destructor Documentation

◆ AdvApprox_PrefAndRec()

AdvApprox_PrefAndRec::AdvApprox_PrefAndRec ( const NCollection_Array1< double > & RecomendedCut,
const NCollection_Array1< double > & PrefferedCut,
const double Weight = 5 )

Member Function Documentation

◆ Value()

bool AdvApprox_PrefAndRec::Value ( const double a,
const double b,
double & cuttingvalue ) const
overridevirtual

cuting value is

  • the recommended point nerest of (a+b)/2 if pi is in ]a,b[ or else
  • the preferential point nearest of (a+b) / 2 if pi is in ](r*a+b)/(r+1) , (a+r*b)/(r+1)[ where r = Weight
  • or (a+b)/2 else.

Implements AdvApprox_Cutting.


The documentation for this class was generated from the following file: