Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
GeomFill_LocationGuide Class Reference

#include <GeomFill_LocationGuide.hxx>

Inheritance diagram for GeomFill_LocationGuide:
Inheritance graph
[legend]

Public Member Functions

 GeomFill_LocationGuide (const occ::handle< GeomFill_TrihedronWithGuide > &Triedre)
 
void Set (const occ::handle< GeomFill_SectionLaw > &Section, const bool rotat, const double SFirst, const double SLast, const double PrecAngle, double &LastAngle)
 
void EraseRotation ()
 
bool SetCurve (const occ::handle< Adaptor3d_Curve > &C) override
 calculating poles on a surface (courbe guide / the surface of rotation in points myNbPts)
 
const occ::handle< Adaptor3d_Curve > & GetCurve () const override
 
void SetTrsf (const gp_Mat &Transfo) override
 Set a transformation Matrix like the law M(t) become Mat * M(t)
 
occ::handle< GeomFill_LocationLawCopy () const override
 
bool D0 (const double Param, gp_Mat &M, gp_Vec &V) override
 compute Location
 
bool D0 (const double Param, gp_Mat &M, gp_Vec &V, NCollection_Array1< gp_Pnt2d > &Poles2d) override
 compute Location and 2d points
 
bool D1 (const double Param, gp_Mat &M, gp_Vec &V, gp_Mat &DM, gp_Vec &DV, NCollection_Array1< gp_Pnt2d > &Poles2d, NCollection_Array1< gp_Vec2d > &DPoles2d) override
 compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation
 
bool D2 (const double Param, gp_Mat &M, gp_Vec &V, gp_Mat &DM, gp_Vec &DV, gp_Mat &D2M, gp_Vec &D2V, NCollection_Array1< gp_Pnt2d > &Poles2d, NCollection_Array1< gp_Vec2d > &DPoles2d, NCollection_Array1< gp_Vec2d > &D2Poles2d) override
 compute location 2d points and associated first and second derivatives. Warning : It used only for C2 approximation
 
bool HasFirstRestriction () const override
 Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation)
 
bool HasLastRestriction () const override
 Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation)
 
int TraceNumber () const override
 Give the number of trace (Curves 2d which are not restriction) Returns 1 (default implementation)
 
GeomFill_PipeError ErrorStatus () const override
 Give a status to the Law Returns PipeOk (default implementation)
 
int NbIntervals (const GeomAbs_Shape S) const override
 Returns the number of intervals for continuity . May be one if Continuity(me) >=
 
void Intervals (NCollection_Array1< double > &T, const GeomAbs_Shape S) const override
 Stores in <T> the parameters bounding the intervals of continuity .
 
void SetInterval (const double First, const double Last) override
 Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
 
void GetInterval (double &First, double &Last) const override
 Gets the bounds of the parametric interval on the function.
 
void GetDomain (double &First, double &Last) const override
 Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
 
void SetTolerance (const double Tol3d, const double Tol2d) override
 Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
 
void Resolution (const int Index, const double Tol, double &TolU, double &TolV) const override
 Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.
 
double GetMaximalNorm () override
 Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).
 
void GetAverageLaw (gp_Mat &AM, gp_Vec &AV) override
 Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
 
bool IsTranslation (double &Error) const override
 Say if the Location Law, is an translation of Location The default implementation is " returns False ".
 
bool IsRotation (double &Error) const override
 Say if the Location Law, is a rotation of Location The default implementation is " returns False ".
 
void Rotation (gp_Pnt &Center) const override
 
occ::handle< Geom_CurveSection () const
 
occ::handle< Adaptor3d_CurveGuide () const
 
void SetOrigine (const double Param1, const double Param2)
 
GeomFill_PipeError ComputeAutomaticLaw (occ::handle< NCollection_HArray1< gp_Pnt2d > > &ParAndRad) const
 
- Public Member Functions inherited from GeomFill_LocationLaw
int Nb2dCurves () const
 get the number of 2d curves (Restrictions + Traces) to approximate.
 
- 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.
 

Protected Attributes

occ::handle< NCollection_HArray2< gp_Pnt2d > > myPoles2d
 

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.
 

Constructor & Destructor Documentation

◆ GeomFill_LocationGuide()

GeomFill_LocationGuide::GeomFill_LocationGuide ( const occ::handle< GeomFill_TrihedronWithGuide > & Triedre)

Member Function Documentation

◆ ComputeAutomaticLaw()

GeomFill_PipeError GeomFill_LocationGuide::ComputeAutomaticLaw ( occ::handle< NCollection_HArray1< gp_Pnt2d > > & ParAndRad) const

◆ Copy()

occ::handle< GeomFill_LocationLaw > GeomFill_LocationGuide::Copy ( ) const
overridevirtual

Implements GeomFill_LocationLaw.

◆ D0() [1/2]

bool GeomFill_LocationGuide::D0 ( const double Param,
gp_Mat & M,
gp_Vec & V )
overridevirtual

compute Location

Implements GeomFill_LocationLaw.

◆ D0() [2/2]

bool GeomFill_LocationGuide::D0 ( const double Param,
gp_Mat & M,
gp_Vec & V,
NCollection_Array1< gp_Pnt2d > & Poles2d )
overridevirtual

compute Location and 2d points

Implements GeomFill_LocationLaw.

◆ D1()

bool GeomFill_LocationGuide::D1 ( const double Param,
gp_Mat & M,
gp_Vec & V,
gp_Mat & DM,
gp_Vec & DV,
NCollection_Array1< gp_Pnt2d > & Poles2d,
NCollection_Array1< gp_Vec2d > & DPoles2d )
overridevirtual

compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation

Reimplemented from GeomFill_LocationLaw.

◆ D2()

bool GeomFill_LocationGuide::D2 ( const double Param,
gp_Mat & M,
gp_Vec & V,
gp_Mat & DM,
gp_Vec & DV,
gp_Mat & D2M,
gp_Vec & D2V,
NCollection_Array1< gp_Pnt2d > & Poles2d,
NCollection_Array1< gp_Vec2d > & DPoles2d,
NCollection_Array1< gp_Vec2d > & D2Poles2d )
overridevirtual

compute location 2d points and associated first and second derivatives. Warning : It used only for C2 approximation

Reimplemented from GeomFill_LocationLaw.

◆ EraseRotation()

void GeomFill_LocationGuide::EraseRotation ( )

◆ ErrorStatus()

GeomFill_PipeError GeomFill_LocationGuide::ErrorStatus ( ) const
overridevirtual

Give a status to the Law Returns PipeOk (default implementation)

Reimplemented from GeomFill_LocationLaw.

◆ GetAverageLaw()

void GeomFill_LocationGuide::GetAverageLaw ( gp_Mat & AM,
gp_Vec & AV )
overridevirtual

Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.

Implements GeomFill_LocationLaw.

◆ GetCurve()

const occ::handle< Adaptor3d_Curve > & GeomFill_LocationGuide::GetCurve ( ) const
overridevirtual

Implements GeomFill_LocationLaw.

◆ GetDomain()

void GeomFill_LocationGuide::GetDomain ( double & First,
double & Last ) const
overridevirtual

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

Implements GeomFill_LocationLaw.

◆ GetInterval()

void GeomFill_LocationGuide::GetInterval ( double & First,
double & Last ) const
overridevirtual

Gets the bounds of the parametric interval on the function.

Implements GeomFill_LocationLaw.

◆ GetMaximalNorm()

double GeomFill_LocationGuide::GetMaximalNorm ( )
overridevirtual

Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).

Implements GeomFill_LocationLaw.

◆ Guide()

occ::handle< Adaptor3d_Curve > GeomFill_LocationGuide::Guide ( ) const

◆ HasFirstRestriction()

bool GeomFill_LocationGuide::HasFirstRestriction ( ) const
overridevirtual

Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation)

Reimplemented from GeomFill_LocationLaw.

◆ HasLastRestriction()

bool GeomFill_LocationGuide::HasLastRestriction ( ) const
overridevirtual

Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation)

Reimplemented from GeomFill_LocationLaw.

◆ Intervals()

void GeomFill_LocationGuide::Intervals ( NCollection_Array1< double > & T,
const GeomAbs_Shape S ) const
overridevirtual

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()

Implements GeomFill_LocationLaw.

◆ IsRotation()

bool GeomFill_LocationGuide::IsRotation ( double & Error) const
overridevirtual

Say if the Location Law, is a rotation of Location The default implementation is " returns False ".

Reimplemented from GeomFill_LocationLaw.

◆ IsTranslation()

bool GeomFill_LocationGuide::IsTranslation ( double & Error) const
overridevirtual

Say if the Location Law, is an translation of Location The default implementation is " returns False ".

Reimplemented from GeomFill_LocationLaw.

◆ NbIntervals()

int GeomFill_LocationGuide::NbIntervals ( const GeomAbs_Shape S) const
overridevirtual

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

Implements GeomFill_LocationLaw.

◆ Resolution()

void GeomFill_LocationGuide::Resolution ( const int Index,
const double Tol,
double & TolU,
double & TolV ) const
overridevirtual

Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.

Reimplemented from GeomFill_LocationLaw.

◆ Rotation()

void GeomFill_LocationGuide::Rotation ( gp_Pnt & Center) const
overridevirtual

Reimplemented from GeomFill_LocationLaw.

◆ Section()

occ::handle< Geom_Curve > GeomFill_LocationGuide::Section ( ) const

◆ Set()

void GeomFill_LocationGuide::Set ( const occ::handle< GeomFill_SectionLaw > & Section,
const bool rotat,
const double SFirst,
const double SLast,
const double PrecAngle,
double & LastAngle )

◆ SetCurve()

bool GeomFill_LocationGuide::SetCurve ( const occ::handle< Adaptor3d_Curve > & C)
overridevirtual

calculating poles on a surface (courbe guide / the surface of rotation in points myNbPts)

Returns
true

Implements GeomFill_LocationLaw.

◆ SetInterval()

void GeomFill_LocationGuide::SetInterval ( const double First,
const double Last )
overridevirtual

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

Implements GeomFill_LocationLaw.

◆ SetOrigine()

void GeomFill_LocationGuide::SetOrigine ( const double Param1,
const double Param2 )

◆ SetTolerance()

void GeomFill_LocationGuide::SetTolerance ( const double Tol3d,
const double Tol2d )
overridevirtual

Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.

Reimplemented from GeomFill_LocationLaw.

◆ SetTrsf()

void GeomFill_LocationGuide::SetTrsf ( const gp_Mat & Transfo)
overridevirtual

Set a transformation Matrix like the law M(t) become Mat * M(t)

Implements GeomFill_LocationLaw.

◆ TraceNumber()

int GeomFill_LocationGuide::TraceNumber ( ) const
overridevirtual

Give the number of trace (Curves 2d which are not restriction) Returns 1 (default implementation)

Reimplemented from GeomFill_LocationLaw.

Field Documentation

◆ myPoles2d

occ::handle<NCollection_HArray2<gp_Pnt2d> > GeomFill_LocationGuide::myPoles2d
protected

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