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

To define section law in sweeping. More...

#include <GeomFill_SectionLaw.hxx>

Inheritance diagram for GeomFill_SectionLaw:
Inheritance graph
[legend]

Public Member Functions

virtual bool D0 (const double Param, NCollection_Array1< gp_Pnt > &Poles, NCollection_Array1< double > &Weigths)=0
 compute the section for v = param
 
virtual bool D1 (const double Param, NCollection_Array1< gp_Pnt > &Poles, NCollection_Array1< gp_Vec > &DPoles, NCollection_Array1< double > &Weigths, NCollection_Array1< double > &DWeigths)
 compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation
 
virtual bool D2 (const double Param, NCollection_Array1< gp_Pnt > &Poles, NCollection_Array1< gp_Vec > &DPoles, NCollection_Array1< gp_Vec > &D2Poles, NCollection_Array1< double > &Weigths, NCollection_Array1< double > &DWeigths, NCollection_Array1< double > &D2Weigths)
 compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation
 
virtual occ::handle< Geom_BSplineSurfaceBSplineSurface () const
 give if possible an bspline Surface, like iso-v are the section. If it is not possible this method have to get an Null Surface. It is the default implementation.
 
virtual void SectionShape (int &NbPoles, int &NbKnots, int &Degree) const =0
 get the format of an section
 
virtual void Knots (NCollection_Array1< double > &TKnots) const =0
 get the Knots of the section
 
virtual void Mults (NCollection_Array1< int > &TMults) const =0
 get the Multplicities of the section
 
virtual bool IsRational () const =0
 Returns if the sections are rational or not.
 
virtual bool IsUPeriodic () const =0
 Returns if the sections are periodic or not.
 
virtual bool IsVPeriodic () const =0
 Returns if law is periodic or not.
 
virtual int NbIntervals (const GeomAbs_Shape S) const =0
 Returns the number of intervals for continuity . May be one if Continuity(me) >=
 
virtual void Intervals (NCollection_Array1< double > &T, const GeomAbs_Shape S) const =0
 Stores in <T> the parameters bounding the intervals of continuity .
 
virtual void SetInterval (const double First, const double Last)=0
 Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
 
virtual void GetInterval (double &First, double &Last) const =0
 Gets the bounds of the parametric interval on the function.
 
virtual void GetDomain (double &First, double &Last) const =0
 Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
 
virtual void GetTolerance (const double BoundTol, const double SurfTol, const double AngleTol, NCollection_Array1< double > &Tol3d) const =0
 Returns the tolerances associated at each poles to reach in approximation, to satisfy: BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
 
virtual void SetTolerance (const double Tol3d, const double Tol2d)
 Is useful, if <me> has to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
 
virtual gp_Pnt BarycentreOfSurf () const
 Get the barycentre of Surface. A very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.
 
virtual double MaximalSection () const =0
 Returns the length of the greater section. This information is useful to G1's control. Warning: With an little value, approximation can be slower.
 
virtual void GetMinimalWeight (NCollection_Array1< double > &Weigths) const
 Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational.
 
virtual bool IsConstant (double &Error) const
 Say if all sections are equals.
 
virtual occ::handle< Geom_CurveConstantSection () const
 Return a copy of the constant Section, if <me> IsConstant.
 
virtual bool IsConicalLaw (double &Error) const
 Returns True if all section are circle, with same plane,same center and linear radius evolution Return False by Default.
 
virtual occ::handle< Geom_CurveCirclSection (const double Param) const
 Return the circle section at parameter , if <me> a IsConicalLaw.
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
 
virtual ~Standard_Transient ()=default
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
bool IsInstance (const char *const theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
bool IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
bool IsKind (const char *const theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
 
int GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
 
int DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_type_name ()
 Returns a type descriptor about this object.
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
 

Detailed Description

To define section law in sweeping.

Member Function Documentation

◆ BarycentreOfSurf()

virtual gp_Pnt GeomFill_SectionLaw::BarycentreOfSurf ( ) const
virtual

Get the barycentre of Surface. A very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ BSplineSurface()

virtual occ::handle< Geom_BSplineSurface > GeomFill_SectionLaw::BSplineSurface ( ) const
virtual

give if possible an bspline Surface, like iso-v are the section. If it is not possible this method have to get an Null Surface. It is the default implementation.

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ CirclSection()

virtual occ::handle< Geom_Curve > GeomFill_SectionLaw::CirclSection ( const double Param) const
virtual

Return the circle section at parameter , if <me> a IsConicalLaw.

Reimplemented in GeomFill_NSections.

◆ ConstantSection()

virtual occ::handle< Geom_Curve > GeomFill_SectionLaw::ConstantSection ( ) const
virtual

Return a copy of the constant Section, if <me> IsConstant.

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ D0()

virtual bool GeomFill_SectionLaw::D0 ( const double Param,
NCollection_Array1< gp_Pnt > & Poles,
NCollection_Array1< double > & Weigths )
pure virtual

compute the section for v = param

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ D1()

virtual bool GeomFill_SectionLaw::D1 ( const double Param,
NCollection_Array1< gp_Pnt > & Poles,
NCollection_Array1< gp_Vec > & DPoles,
NCollection_Array1< double > & Weigths,
NCollection_Array1< double > & DWeigths )
virtual

compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ D2()

virtual bool GeomFill_SectionLaw::D2 ( const double Param,
NCollection_Array1< gp_Pnt > & Poles,
NCollection_Array1< gp_Vec > & DPoles,
NCollection_Array1< gp_Vec > & D2Poles,
NCollection_Array1< double > & Weigths,
NCollection_Array1< double > & DWeigths,
NCollection_Array1< double > & D2Weigths )
virtual

compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ GetDomain()

virtual void GeomFill_SectionLaw::GetDomain ( double & First,
double & Last ) const
pure virtual

Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ GetInterval()

virtual void GeomFill_SectionLaw::GetInterval ( double & First,
double & Last ) const
pure virtual

Gets the bounds of the parametric interval on the function.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ GetMinimalWeight()

virtual void GeomFill_SectionLaw::GetMinimalWeight ( NCollection_Array1< double > & Weigths) const
virtual

Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational.

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ GetTolerance()

virtual void GeomFill_SectionLaw::GetTolerance ( const double BoundTol,
const double SurfTol,
const double AngleTol,
NCollection_Array1< double > & Tol3d ) const
pure virtual

Returns the tolerances associated at each poles to reach in approximation, to satisfy: BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ Intervals()

virtual void GeomFill_SectionLaw::Intervals ( NCollection_Array1< double > & T,
const GeomAbs_Shape S ) const
pure virtual

Stores in <T> the parameters bounding the intervals of continuity .

The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ IsConicalLaw()

virtual bool GeomFill_SectionLaw::IsConicalLaw ( double & Error) const
virtual

Returns True if all section are circle, with same plane,same center and linear radius evolution Return False by Default.

Reimplemented in GeomFill_NSections.

◆ IsConstant()

virtual bool GeomFill_SectionLaw::IsConstant ( double & Error) const
virtual

Say if all sections are equals.

Reimplemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ IsRational()

virtual bool GeomFill_SectionLaw::IsRational ( ) const
pure virtual

Returns if the sections are rational or not.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ IsUPeriodic()

virtual bool GeomFill_SectionLaw::IsUPeriodic ( ) const
pure virtual

Returns if the sections are periodic or not.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ IsVPeriodic()

virtual bool GeomFill_SectionLaw::IsVPeriodic ( ) const
pure virtual

Returns if law is periodic or not.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ Knots()

virtual void GeomFill_SectionLaw::Knots ( NCollection_Array1< double > & TKnots) const
pure virtual

get the Knots of the section

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ MaximalSection()

virtual double GeomFill_SectionLaw::MaximalSection ( ) const
pure virtual

Returns the length of the greater section. This information is useful to G1's control. Warning: With an little value, approximation can be slower.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ Mults()

virtual void GeomFill_SectionLaw::Mults ( NCollection_Array1< int > & TMults) const
pure virtual

get the Multplicities of the section

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ NbIntervals()

virtual int GeomFill_SectionLaw::NbIntervals ( const GeomAbs_Shape S) const
pure virtual

Returns the number of intervals for continuity . May be one if Continuity(me) >=

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ SectionShape()

virtual void GeomFill_SectionLaw::SectionShape ( int & NbPoles,
int & NbKnots,
int & Degree ) const
pure virtual

get the format of an section

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ SetInterval()

virtual void GeomFill_SectionLaw::SetInterval ( const double First,
const double Last )
pure virtual

Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.

Implemented in GeomFill_EvolvedSection, GeomFill_NSections, and GeomFill_UniformSection.

◆ SetTolerance()

virtual void GeomFill_SectionLaw::SetTolerance ( const double Tol3d,
const double Tol2d )
virtual

Is useful, if <me> has to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.


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