Open CASCADE Technology  6.9.1
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 TColStd_Array1OfReal &RecomendedCut, const TColStd_Array1OfReal &PrefferedCut, const Standard_Real Weight=5)
 
virtual Standard_Boolean Value (const Standard_Real a, const Standard_Real b, Standard_Real &cuttingvalue) const
 cuting value is More...
 
- Public Member Functions inherited from AdvApprox_Cutting
virtual void Delete ()
 
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 ( const TColStd_Array1OfReal RecomendedCut,
const TColStd_Array1OfReal PrefferedCut,
const Standard_Real  Weight = 5 
)

Member Function Documentation

virtual Standard_Boolean AdvApprox_PrefAndRec::Value ( const Standard_Real  a,
const Standard_Real  b,
Standard_Real cuttingvalue 
) const
virtual

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: