OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    GeomFill_LocationLaw Class Referenceabstract

    To define location law in Sweeping location is defined by an Matrix M and an Vector V, and transform an point P in MP+V. More...

    #include <GeomFill_LocationLaw.hxx>

    Inheritance diagram for GeomFill_LocationLaw:

    Public Member Functions

    virtual bool SetCurve (const occ::handle< Adaptor3d_Curve > &C)=0
     initialize curve of location law
    virtual const occ::handle< Adaptor3d_Curve > & GetCurve () const =0
    virtual void SetTrsf (const gp_Mat &Transfo)=0
     Set a transformation Matrix like the law M(t) become Mat * M(t).
    virtual occ::handle< GeomFill_LocationLaw > Copy () const =0
    virtual bool D0 (const double Param, gp_Mat &M, gp_Vec &V)=0
     compute Location
    virtual bool D0 (const double Param, gp_Mat &M, gp_Vec &V, NCollection_Array1< gp_Pnt2d > &Poles2d)=0
     compute Location and 2d points
    virtual 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)
     compute location 2d points and associated first derivatives. Warning: It used only for C1 or C2 approximation
    virtual 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)
     compute location 2d points and associated first and second derivatives. Warning: It used only for C2 approximation
    int Nb2dCurves () const
     get the number of 2d curves (Restrictions + Traces) to approximate.
    virtual bool HasFirstRestriction () const
     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).
    virtual bool HasLastRestriction () const
     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).
    virtual int TraceNumber () const
     Give the number of trace (Curves 2d which are not restriction) Returns 0 (default implementation).
    virtual GeomFill_PipeError ErrorStatus () const
     Give a status to the Law Returns PipeOk (default implementation).
    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 Resolution (const int Index, const double Tol, double &TolU, double &TolV) const
     Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation.
    virtual void SetTolerance (const double Tol3d, const double Tol2d)
     Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
    virtual double GetMaximalNorm ()=0
     Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).
    virtual void GetAverageLaw (gp_Mat &AM, gp_Vec &AV)=0
     Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
    virtual bool IsTranslation (double &Error) const
     Say if the Location Law, is an translation of Location The default implementation is " returns False ".
    virtual bool IsRotation (double &Error) const
     Say if the Location Law, is a rotation of Location The default implementation is " returns False ".
    virtual void Rotation (gp_Pnt &Center) const
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transient & operator= (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_Transient * This () 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

    typedef void base_type
     Returns a type descriptor about this object.
    static constexpr const char * get_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 location law in Sweeping location is defined by an Matrix M and an Vector V, and transform an point P in MP+V.

    Member Function Documentation

    ◆ Copy()

    virtual occ::handle< GeomFill_LocationLaw > GeomFill_LocationLaw::Copy ( ) const
    pure virtual

    ◆ D0() [1/2]

    virtual bool GeomFill_LocationLaw::D0 ( const double Param,
    gp_Mat & M,
    gp_Vec & V )
    pure virtual

    ◆ D0() [2/2]

    virtual bool GeomFill_LocationLaw::D0 ( const double Param,
    gp_Mat & M,
    gp_Vec & V,
    NCollection_Array1< gp_Pnt2d > & Poles2d )
    pure virtual

    compute Location and 2d points

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ D1()

    virtual bool GeomFill_LocationLaw::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 )
    virtual

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

    Reimplemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ D2()

    virtual bool GeomFill_LocationLaw::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 )
    virtual

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

    Reimplemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ ErrorStatus()

    virtual GeomFill_PipeError GeomFill_LocationLaw::ErrorStatus ( ) const
    virtual

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

    Reimplemented in GeomFill_LocationGuide.

    ◆ GetAverageLaw()

    virtual void GeomFill_LocationLaw::GetAverageLaw ( gp_Mat & AM,
    gp_Vec & AV )
    pure virtual

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

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ GetCurve()

    virtual const occ::handle< Adaptor3d_Curve > & GeomFill_LocationLaw::GetCurve ( ) const
    pure virtual

    ◆ GetDomain()

    virtual void GeomFill_LocationLaw::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_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ GetInterval()

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

    Gets the bounds of the parametric interval on the function.

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ GetMaximalNorm()

    virtual double GeomFill_LocationLaw::GetMaximalNorm ( )
    pure virtual

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

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ HasFirstRestriction()

    virtual bool GeomFill_LocationLaw::HasFirstRestriction ( ) const
    virtual

    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 in GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ HasLastRestriction()

    virtual bool GeomFill_LocationLaw::HasLastRestriction ( ) const
    virtual

    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 in GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ Intervals()

    virtual void GeomFill_LocationLaw::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_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ IsRotation()

    virtual bool GeomFill_LocationLaw::IsRotation ( double & Error) const
    virtual

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

    Reimplemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ IsTranslation()

    virtual bool GeomFill_LocationLaw::IsTranslation ( double & Error) const
    virtual

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

    Reimplemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ Nb2dCurves()

    int GeomFill_LocationLaw::Nb2dCurves ( ) const

    get the number of 2d curves (Restrictions + Traces) to approximate.

    ◆ NbIntervals()

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

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

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ Resolution()

    virtual void GeomFill_LocationLaw::Resolution ( const int Index,
    const double Tol,
    double & TolU,
    double & TolV ) const
    virtual

    Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation.

    Reimplemented in GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ Rotation()

    virtual void GeomFill_LocationLaw::Rotation ( gp_Pnt & Center) const
    virtual

    ◆ SetCurve()

    virtual bool GeomFill_LocationLaw::SetCurve ( const occ::handle< Adaptor3d_Curve > & C)
    pure virtual

    initialize curve of location law

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ SetInterval()

    virtual void GeomFill_LocationLaw::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_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ SetTolerance()

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

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

    Reimplemented in GeomFill_LocationGuide.

    ◆ SetTrsf()

    virtual void GeomFill_LocationLaw::SetTrsf ( const gp_Mat & Transfo)
    pure virtual

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

    Implemented in GeomFill_CurveAndTrihedron, GeomFill_LocationDraft, and GeomFill_LocationGuide.

    ◆ TraceNumber()

    virtual int GeomFill_LocationLaw::TraceNumber ( ) const
    virtual

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

    Reimplemented in GeomFill_LocationDraft, and GeomFill_LocationGuide.


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