Open CASCADE Technology  7.4.0
Public Member Functions | Protected Attributes
GeomPlate_CurveConstraint Class Reference

Defines curves as constraints to be used to deform a surface. More...

#include <GeomPlate_CurveConstraint.hxx>

Inheritance diagram for GeomPlate_CurveConstraint:
Inheritance graph
[legend]

Public Member Functions

 GeomPlate_CurveConstraint ()
 Initializes an empty curve constraint object. More...
 
 GeomPlate_CurveConstraint (const Handle< Adaptor3d_HCurve > &Boundary, const Standard_Integer Order, const Standard_Integer NPt=10, const Standard_Real TolDist=0.0001, const Standard_Real TolAng=0.01, const Standard_Real TolCurv=0.1)
 Create a constraint Order is the order of the constraint. The possible values for order are -1,0,1,2. Order i means constraints Gi Npt is the number of points associated with the constraint. TolDist is the maximum error to satisfy for G0 constraints TolAng is the maximum error to satisfy for G1 constraints TolCurv is the maximum error to satisfy for G2 constraints These errors can be replaced by laws of criterion. Raises ConstructionError if Order is not -1 , 0, 1, 2. More...
 
void SetOrder (const Standard_Integer Order)
 Allows you to set the order of continuity required for the constraints: G0, G1, and G2, controlled respectively by G0Criterion G1Criterion and G2Criterion. More...
 
Standard_Integer Order () const
 Returns the order of constraint, one of G0, G1 or G2. More...
 
Standard_Integer NbPoints () const
 Returns the number of points on the curve used as a constraint. The default setting is 10. This parameter affects computation time, which increases by the cube of the number of points. More...
 
void SetNbPoints (const Standard_Integer NewNb)
 Allows you to set the number of points on the curve constraint. The default setting is 10. This parameter affects computation time, which increases by the cube of the number of points. More...
 
void SetG0Criterion (const Handle< Law_Function > &G0Crit)
 Allows you to set the G0 criterion. This is the law defining the greatest distance allowed between the constraint and the target surface for each point of the constraint. If this criterion is not set, TolDist, the distance tolerance from the constructor, is used. More...
 
void SetG1Criterion (const Handle< Law_Function > &G1Crit)
 Allows you to set the G1 criterion. This is the law defining the greatest angle allowed between the constraint and the target surface. If this criterion is not set, TolAng, the angular tolerance from the constructor, is used. Raises ConstructionError if the curve is not on a surface. More...
 
void SetG2Criterion (const Handle< Law_Function > &G2Crit)
 
Standard_Real G0Criterion (const Standard_Real U) const
 Returns the G0 criterion at the parametric point U on the curve. This is the greatest distance allowed between the constraint and the target surface at U. More...
 
Standard_Real G1Criterion (const Standard_Real U) const
 Returns the G1 criterion at the parametric point U on the curve. This is the greatest angle allowed between the constraint and the target surface at U. Raises ConstructionError if the curve is not on a surface. More...
 
Standard_Real G2Criterion (const Standard_Real U) const
 Returns the G2 criterion at the parametric point U on the curve. This is the greatest difference in curvature allowed between the constraint and the target surface at U. Raises ConstructionError if the curve is not on a surface. More...
 
Standard_Real FirstParameter () const
 
Standard_Real LastParameter () const
 
Standard_Real Length () const
 
GeomLProp_SLPropsLPropSurf (const Standard_Real U)
 
void D0 (const Standard_Real U, gp_Pnt &P) const
 
void D1 (const Standard_Real U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2) const
 
void D2 (const Standard_Real U, gp_Pnt &P, gp_Vec &V1, gp_Vec &V2, gp_Vec &V3, gp_Vec &V4, gp_Vec &V5) const
 
Handle< Adaptor3d_HCurveCurve3d () const
 
void SetCurve2dOnSurf (const Handle< Geom2d_Curve > &Curve2d)
 loads a 2d curve associated the surface resulting of the constraints More...
 
Handle< Geom2d_CurveCurve2dOnSurf () const
 Returns a 2d curve associated the surface resulting of the constraints. More...
 
void SetProjectedCurve (const Handle< Adaptor2d_HCurve2d > &Curve2d, const Standard_Real TolU, const Standard_Real TolV)
 loads a 2d curve resulting from the normal projection of the curve on the initial surface More...
 
Handle< Adaptor2d_HCurve2dProjectedCurve () const
 Returns the projected curve resulting from the normal projection of the curve on the initial surface. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean 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. More...
 
Standard_Boolean IsKind (const Standard_CString 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. More...
 
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. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Protected Attributes

Handle< Adaptor3d_HCurveOnSurfacemyFrontiere
 
Standard_Integer myNbPoints
 
Standard_Integer myOrder
 
Handle< Adaptor3d_HCurvemy3dCurve
 
Standard_Integer myTang
 
Handle< Geom2d_Curvemy2dCurve
 
Handle< Adaptor2d_HCurve2dmyHCurve2d
 
Handle< Law_FunctionmyG0Crit
 
Handle< Law_FunctionmyG1Crit
 
Handle< Law_FunctionmyG2Crit
 
Standard_Boolean myConstG0
 
Standard_Boolean myConstG1
 
Standard_Boolean myConstG2
 
GeomLProp_SLProps myLProp
 
Standard_Real myTolDist
 
Standard_Real myTolAng
 
Standard_Real myTolCurv
 
Standard_Real myTolU
 
Standard_Real myTolV
 

Additional Inherited Members

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

Detailed Description

Defines curves as constraints to be used to deform a surface.

Constructor & Destructor Documentation

◆ GeomPlate_CurveConstraint() [1/2]

GeomPlate_CurveConstraint::GeomPlate_CurveConstraint ( )

Initializes an empty curve constraint object.

◆ GeomPlate_CurveConstraint() [2/2]

GeomPlate_CurveConstraint::GeomPlate_CurveConstraint ( const Handle< Adaptor3d_HCurve > &  Boundary,
const Standard_Integer  Order,
const Standard_Integer  NPt = 10,
const Standard_Real  TolDist = 0.0001,
const Standard_Real  TolAng = 0.01,
const Standard_Real  TolCurv = 0.1 
)

Create a constraint Order is the order of the constraint. The possible values for order are -1,0,1,2. Order i means constraints Gi Npt is the number of points associated with the constraint. TolDist is the maximum error to satisfy for G0 constraints TolAng is the maximum error to satisfy for G1 constraints TolCurv is the maximum error to satisfy for G2 constraints These errors can be replaced by laws of criterion. Raises ConstructionError if Order is not -1 , 0, 1, 2.

Member Function Documentation

◆ Curve2dOnSurf()

Handle< Geom2d_Curve > GeomPlate_CurveConstraint::Curve2dOnSurf ( ) const

Returns a 2d curve associated the surface resulting of the constraints.

◆ Curve3d()

Handle< Adaptor3d_HCurve > GeomPlate_CurveConstraint::Curve3d ( ) const

◆ D0()

void GeomPlate_CurveConstraint::D0 ( const Standard_Real  U,
gp_Pnt P 
) const

◆ D1()

void GeomPlate_CurveConstraint::D1 ( const Standard_Real  U,
gp_Pnt P,
gp_Vec V1,
gp_Vec V2 
) const

◆ D2()

void GeomPlate_CurveConstraint::D2 ( const Standard_Real  U,
gp_Pnt P,
gp_Vec V1,
gp_Vec V2,
gp_Vec V3,
gp_Vec V4,
gp_Vec V5 
) const

◆ FirstParameter()

Standard_Real GeomPlate_CurveConstraint::FirstParameter ( ) const

◆ G0Criterion()

Standard_Real GeomPlate_CurveConstraint::G0Criterion ( const Standard_Real  U) const

Returns the G0 criterion at the parametric point U on the curve. This is the greatest distance allowed between the constraint and the target surface at U.

◆ G1Criterion()

Standard_Real GeomPlate_CurveConstraint::G1Criterion ( const Standard_Real  U) const

Returns the G1 criterion at the parametric point U on the curve. This is the greatest angle allowed between the constraint and the target surface at U. Raises ConstructionError if the curve is not on a surface.

◆ G2Criterion()

Standard_Real GeomPlate_CurveConstraint::G2Criterion ( const Standard_Real  U) const

Returns the G2 criterion at the parametric point U on the curve. This is the greatest difference in curvature allowed between the constraint and the target surface at U. Raises ConstructionError if the curve is not on a surface.

◆ LastParameter()

Standard_Real GeomPlate_CurveConstraint::LastParameter ( ) const

◆ Length()

Standard_Real GeomPlate_CurveConstraint::Length ( ) const

◆ LPropSurf()

GeomLProp_SLProps& GeomPlate_CurveConstraint::LPropSurf ( const Standard_Real  U)

◆ NbPoints()

Standard_Integer GeomPlate_CurveConstraint::NbPoints ( ) const

Returns the number of points on the curve used as a constraint. The default setting is 10. This parameter affects computation time, which increases by the cube of the number of points.

◆ Order()

Standard_Integer GeomPlate_CurveConstraint::Order ( ) const

Returns the order of constraint, one of G0, G1 or G2.

◆ ProjectedCurve()

Handle< Adaptor2d_HCurve2d > GeomPlate_CurveConstraint::ProjectedCurve ( ) const

Returns the projected curve resulting from the normal projection of the curve on the initial surface.

◆ SetCurve2dOnSurf()

void GeomPlate_CurveConstraint::SetCurve2dOnSurf ( const Handle< Geom2d_Curve > &  Curve2d)

loads a 2d curve associated the surface resulting of the constraints

◆ SetG0Criterion()

void GeomPlate_CurveConstraint::SetG0Criterion ( const Handle< Law_Function > &  G0Crit)

Allows you to set the G0 criterion. This is the law defining the greatest distance allowed between the constraint and the target surface for each point of the constraint. If this criterion is not set, TolDist, the distance tolerance from the constructor, is used.

◆ SetG1Criterion()

void GeomPlate_CurveConstraint::SetG1Criterion ( const Handle< Law_Function > &  G1Crit)

Allows you to set the G1 criterion. This is the law defining the greatest angle allowed between the constraint and the target surface. If this criterion is not set, TolAng, the angular tolerance from the constructor, is used. Raises ConstructionError if the curve is not on a surface.

◆ SetG2Criterion()

void GeomPlate_CurveConstraint::SetG2Criterion ( const Handle< Law_Function > &  G2Crit)

◆ SetNbPoints()

void GeomPlate_CurveConstraint::SetNbPoints ( const Standard_Integer  NewNb)

Allows you to set the number of points on the curve constraint. The default setting is 10. This parameter affects computation time, which increases by the cube of the number of points.

◆ SetOrder()

void GeomPlate_CurveConstraint::SetOrder ( const Standard_Integer  Order)

Allows you to set the order of continuity required for the constraints: G0, G1, and G2, controlled respectively by G0Criterion G1Criterion and G2Criterion.

◆ SetProjectedCurve()

void GeomPlate_CurveConstraint::SetProjectedCurve ( const Handle< Adaptor2d_HCurve2d > &  Curve2d,
const Standard_Real  TolU,
const Standard_Real  TolV 
)

loads a 2d curve resulting from the normal projection of the curve on the initial surface

Field Documentation

◆ my2dCurve

Handle< Geom2d_Curve > GeomPlate_CurveConstraint::my2dCurve
protected

◆ my3dCurve

Handle< Adaptor3d_HCurve > GeomPlate_CurveConstraint::my3dCurve
protected

◆ myConstG0

Standard_Boolean GeomPlate_CurveConstraint::myConstG0
protected

◆ myConstG1

Standard_Boolean GeomPlate_CurveConstraint::myConstG1
protected

◆ myConstG2

Standard_Boolean GeomPlate_CurveConstraint::myConstG2
protected

◆ myFrontiere

Handle< Adaptor3d_HCurveOnSurface > GeomPlate_CurveConstraint::myFrontiere
protected

◆ myG0Crit

Handle< Law_Function > GeomPlate_CurveConstraint::myG0Crit
protected

◆ myG1Crit

Handle< Law_Function > GeomPlate_CurveConstraint::myG1Crit
protected

◆ myG2Crit

Handle< Law_Function > GeomPlate_CurveConstraint::myG2Crit
protected

◆ myHCurve2d

Handle< Adaptor2d_HCurve2d > GeomPlate_CurveConstraint::myHCurve2d
protected

◆ myLProp

GeomLProp_SLProps GeomPlate_CurveConstraint::myLProp
protected

◆ myNbPoints

Standard_Integer GeomPlate_CurveConstraint::myNbPoints
protected

◆ myOrder

Standard_Integer GeomPlate_CurveConstraint::myOrder
protected

◆ myTang

Standard_Integer GeomPlate_CurveConstraint::myTang
protected

◆ myTolAng

Standard_Real GeomPlate_CurveConstraint::myTolAng
protected

◆ myTolCurv

Standard_Real GeomPlate_CurveConstraint::myTolCurv
protected

◆ myTolDist

Standard_Real GeomPlate_CurveConstraint::myTolDist
protected

◆ myTolU

Standard_Real GeomPlate_CurveConstraint::myTolU
protected

◆ myTolV

Standard_Real GeomPlate_CurveConstraint::myTolV
protected

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