OCC.AppDef module¶
This package describes all the classes needed to approximatepoints in Bezier curves. It is used in the packageAppParCurves.The points of the same range for the approximation areorganised in MultiPointConstraints. These MultiPointConstraintsare organized in a MultiLine.The corresponding result of a MultiLine approximation isa MultiCurve (set of Bezier curves) which has the samestructure as a MultiLine: The MultiCurve is a set ofMultiPoint.A point of a MultiLine can have many significations: the approximation curvecan go through this point or not, can have a given tangency, or canhave a given curvature.Note: a CurvaturePoint is also a PassPoint and a TangencyPoint.A TangencyPoint is also a PassPoint.
-
class
AppDef_Array1OfMultiPointConstraint
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (AppDef_Array1OfMultiPointConstraint &) – Return type: AppDef_Array1OfMultiPointConstraint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: AppDef_MultiPointConstraint
-
Set
()¶ Parameters: Other (AppDef_Array1OfMultiPointConstraint &) – Return type: AppDef_Array1OfMultiPointConstraint
-
Value
()¶ Parameters: Index (int) – Return type: AppDef_MultiPointConstraint
-
thisown
¶ The membership flag
-
-
class
AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute
(*args)¶ Bases:
OCC.math.math_BFGS
Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute
(*args)¶ Bases:
OCC.math.math_MultipleVarFunctionWithGradient
Parameters: Return type: -
CurveValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
DerivativeFunctionMatrix
()¶ Return type: math_Matrix
-
FirstConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- FirstPoint (int) –
Return type: AppParCurves_Constraint
-
FunctionMatrix
()¶ Return type: math_Matrix
-
Index
()¶ Return type: math_IntegerVector
-
LastConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- LastPoint (int) –
Return type: AppParCurves_Constraint
-
NewParameters
()¶ Return type: math_Vector
-
thisown
¶ The membership flag
-
-
class
AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute
(*args)¶ Bases:
object
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- FirstCons (AppParCurves_Constraint) –
- LastCons (AppParCurves_Constraint) –
- Parameters (math_Vector &) –
- NbPol (int) –
- SSP –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
- SSP –
- Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- Parameters –
- NbPol –
- SSP –
- Knots –
- Mults –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
Return type: Return type: Return type: Return type: -
BSplineValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
BezierValue
()¶ Return type: AppParCurves_MultiCurve
-
DerivativeFunctionMatrix
()¶ Return type: math_Matrix
-
Distance
()¶ Return type: math_Matrix
-
ErrorGradient
()¶ Parameters: - Grad (math_Vector &) –
- F (float &) –
- MaxE3d (float &) –
- MaxE2d (float &) –
Return type:
-
FunctionMatrix
()¶ Return type: math_Matrix
-
KIndex
()¶ Return type: math_IntegerVector
-
Perform
()¶ Parameters: Return type: Return type: Return type: Return type:
-
Points
()¶ Return type: math_Matrix
-
Poles
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
class
AppDef_BSplineCompute
(*args)¶ Bases:
object
Parameters: - Line (AppDef_MultiLine &) –
- degreemin (int) – default value is 4
- degreemax (int) – default value is 8
- Tolerance3d (float) – default value is 1.0e-3
- Tolerance2d (float) – default value is 1.0e-6
- NbIterations (int) – default value is 5
- cutting (bool) – default value is Standard_True
- parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
- Squares (bool) – default value is Standard_False
- Line –
- Parameters (math_Vector &) –
- degreemin – default value is 4
- degreemax – default value is 8
- Tolerance3d – default value is 1.0e-03
- Tolerance2d – default value is 1.0e-06
- NbIterations – default value is 5
- cutting – default value is Standard_True
- Squares – default value is Standard_False
- Parameters –
- degreemin – default value is 4
- degreemax – default value is 8
- Tolerance3d – default value is 1.0e-03
- Tolerance2d – default value is 1.0e-06
- NbIterations – default value is 5
- cutting – default value is Standard_True
- Squares – default value is Standard_False
- degreemin – default value is 4
- degreemax – default value is 8
- Tolerance3d – default value is 1.0e-03
- Tolerance2d – default value is 1.0e-06
- NbIterations – default value is 5
- cutting – default value is Standard_True
- parametrization – default value is Approx_ChordLength
- Squares – default value is Standard_False
Return type: Return type: Return type: Return type: -
ChangeValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
Init
()¶ Parameters: - degreemin (int) – default value is 4
- degreemax (int) – default value is 8
- Tolerance3d (float) – default value is 1.0e-03
- Tolerance2d (float) – default value is 1.0e-06
- NbIterations (int) – default value is 5
- cutting (bool) – default value is Standard_True
- parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
- Squares (bool) – default value is Standard_False
Return type:
-
Parameters
()¶ Return type: TColStd_Array1OfReal
-
SetConstraints
()¶ Parameters: - firstC (AppParCurves_Constraint) –
- lastC (AppParCurves_Constraint) –
Return type:
-
SetKnotsAndMultiplicities
()¶ Parameters: - Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
Return type:
-
Value
()¶ Return type: AppParCurves_MultiBSpCurve
-
thisown
¶ The membership flag
-
class
AppDef_Compute
(*args)¶ Bases:
object
Parameters: - Line (AppDef_MultiLine &) –
- degreemin (int) – default value is 4
- degreemax (int) – default value is 8
- Tolerance3d (float) – default value is 1.0e-3
- Tolerance2d (float) – default value is 1.0e-6
- NbIterations (int) – default value is 5
- cutting (bool) – default value is Standard_True
- parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
- Squares (bool) – default value is Standard_False
- Line –
- Parameters (math_Vector &) –
- degreemin – default value is 4
- degreemax – default value is 8
- Tolerance3d – default value is 1.0e-03
- Tolerance2d – default value is 1.0e-06
- NbIterations – default value is 5
- cutting – default value is Standard_True
- Squares – default value is Standard_False
- Parameters –
- degreemin – default value is 4
- degreemax – default value is 8
- Tolerance3d – default value is 1.0e-03
- Tolerance2d – default value is 1.0e-06
- NbIterations – default value is 5
- cutting – default value is Standard_True
- Squares – default value is Standard_False
- degreemin – default value is 4
- degreemax – default value is 8
- Tolerance3d – default value is 1.0e-03
- Tolerance2d – default value is 1.0e-06
- NbIterations – default value is 5
- cutting – default value is Standard_True
- parametrization – default value is Approx_ChordLength
- Squares – default value is Standard_False
Return type: Return type: Return type: Return type: -
ChangeValue
()¶ Parameters: Index (int) – default value is 1 Return type: AppParCurves_MultiCurve
-
Init
()¶ Parameters: - degreemin (int) – default value is 4
- degreemax (int) – default value is 8
- Tolerance3d (float) – default value is 1.0e-03
- Tolerance2d (float) – default value is 1.0e-06
- NbIterations (int) – default value is 5
- cutting (bool) – default value is Standard_True
- parametrization (Approx_ParametrizationType) – default value is Approx_ChordLength
- Squares (bool) – default value is Standard_False
Return type:
-
Parameters
()¶ Parameters: Index (int) – default value is 1 Return type: TColStd_Array1OfReal
-
SetConstraints
()¶ Parameters: - firstC (AppParCurves_Constraint) –
- lastC (AppParCurves_Constraint) –
Return type:
-
SplineValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
Value
()¶ Parameters: Index (int) – default value is 1 Return type: AppParCurves_MultiCurve
-
thisown
¶ The membership flag
-
class
AppDef_Gradient_BFGSOfMyGradientOfCompute
(*args)¶ Bases:
OCC.math.math_BFGS
Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute
(*args)¶ Bases:
OCC.math.math_BFGS
Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
AppDef_Gradient_BFGSOfTheGradient
(*args)¶ Bases:
OCC.math.math_BFGS
Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
AppDef_HArray1OfMultiPointConstraint
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
Parameters: Return type: Return type: -
Array1
()¶ Return type: AppDef_Array1OfMultiPointConstraint
-
ChangeArray1
()¶ Return type: AppDef_Array1OfMultiPointConstraint
-
ChangeValue
()¶ Parameters: Index (int) – Return type: AppDef_MultiPointConstraint
-
GetHandle
()¶
-
Value
()¶ Parameters: Index (int) – Return type: AppDef_MultiPointConstraint
-
thisown
¶ The membership flag
-
-
class
AppDef_LinearCriteria
(*args)¶ Bases:
OCC.AppDef.AppDef_SmoothCriterion
Parameters: Return type: -
GetEstLength
()¶ AppDef_LinearCriteria_GetEstLength(AppDef_LinearCriteria self) -> Standard_Real
-
GetHandle
()¶
-
SetEstLength
()¶ AppDef_LinearCriteria_SetEstLength(AppDef_LinearCriteria self, Standard_Real value)
-
SetWeight
()¶ Parameters: Return type: Return type:
-
thisown
¶ The membership flag
-
-
class
AppDef_MultiLine
(*args)¶ Bases:
object
- creates an undefined MultiLine.
Return type: None - given the number NbMult of MultiPointConstraints of this MultiLine , it initializes all the fields.SetValue must be called in order for the values of the multipoint constraint to be taken into account. An exception is raised if NbMult < 0.
Parameters: NbMult (int) – Return type: None - Constructs a MultiLine with an array of MultiPointConstraints.
Parameters: tabMultiP (AppDef_Array1OfMultiPointConstraint &) – Return type: None - The MultiLine constructed will have one line of 3d points without their tangencies.
Parameters: tabP3d (TColgp_Array1OfPnt) – Return type: None - The MultiLine constructed will have one line of 2d points without their tangencies.
Parameters: tabP2d (TColgp_Array1OfPnt2d) – Return type: None -
DumpToString
()¶ AppDef_MultiLine_DumpToString(AppDef_MultiLine self) -> std::string
-
SetValue
()¶ - It sets the MultiPointConstraint of range Index to the value MPoint. An exception is raised if Index < 0 or Index> MPoint. An exception is raised if the dimensions of the MultiPoints are different.
Parameters: - Index (int) –
- MPoint (AppDef_MultiPointConstraint &) –
Return type:
-
Value
()¶ - returns the MultiPointConstraint of range Index An exception is raised if Index<0 or Index>MPoint.
Parameters: Index (int) – Return type: AppDef_MultiPointConstraint
-
thisown
¶ The membership flag
-
class
AppDef_MultiPointConstraint
(*args)¶ Bases:
OCC.AppParCurves.AppParCurves_MultiPoint
- creates an undefined MultiPointConstraint.
Return type: None - constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d.
Parameters: Return type: - creates a MultiPoint only composed of 3D points.
Parameters: tabP (TColgp_Array1OfPnt) – Return type: None - creates a MultiPoint only composed of 2D points.
Parameters: tabP (TColgp_Array1OfPnt2d) – Return type: None - constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d.
Parameters: - tabP (TColgp_Array1OfPnt) –
- tabP2d (TColgp_Array1OfPnt2d) –
Return type: - creates a MultiPointConstraint with a constraint of Curvature. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> ) or from (length of <tabCur> + length of <tabCur2d> )
Parameters: - tabP (TColgp_Array1OfPnt) –
- tabP2d (TColgp_Array1OfPnt2d) –
- tabVec (TColgp_Array1OfVec) –
- tabVec2d (TColgp_Array1OfVec2d) –
- tabCur (TColgp_Array1OfVec) –
- tabCur2d (TColgp_Array1OfVec2d) –
Return type: - creates a MultiPointConstraint with a constraint of Tangency. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> )
Parameters: - tabP (TColgp_Array1OfPnt) –
- tabP2d (TColgp_Array1OfPnt2d) –
- tabVec (TColgp_Array1OfVec) –
- tabVec2d (TColgp_Array1OfVec2d) –
Return type: - creates a MultiPointConstraint only composed of 3d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec or from tabCur.
Parameters: - tabP (TColgp_Array1OfPnt) –
- tabVec (TColgp_Array1OfVec) –
- tabCur (TColgp_Array1OfVec) –
Return type: - creates a MultiPointConstraint only composed of 3d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec.
Parameters: - tabP (TColgp_Array1OfPnt) –
- tabVec (TColgp_Array1OfVec) –
Return type: - creates a MultiPointConstraint only composed of 2d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec2d.
Parameters: - tabP2d (TColgp_Array1OfPnt2d) –
- tabVec2d (TColgp_Array1OfVec2d) –
Return type: - creates a MultiPointConstraint only composed of 2d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec2d or from tabCur2d.
Parameters: - tabP2d (TColgp_Array1OfPnt2d) –
- tabVec2d (TColgp_Array1OfVec2d) –
- tabCur2d (TColgp_Array1OfVec2d) –
Return type: -
Curv
()¶ - returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.
Parameters: Index (int) – Return type: gp_Vec
-
Curv2d
()¶ - returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.
Parameters: Index (int) – Return type: gp_Vec2d
-
DumpToString
()¶ AppDef_MultiPointConstraint_DumpToString(AppDef_MultiPointConstraint self) -> std::string
-
SetCurv
()¶ - Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions.
Parameters: Return type:
-
SetCurv2d
()¶ - Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions.
Parameters: Return type:
-
SetTang
()¶ - sets the value of the tangency of the point of range Index. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Tang has an incorrect number of dimensions.
Parameters: Return type:
-
SetTang2d
()¶ - sets the value of the tangency of the point of range Index. An exception is raised if Index <number of 3d points or if Index > total number of Points An exception is raised if Tang has an incorrect number of dimensions.
Parameters: Return type:
-
Tang
()¶ - returns the tangency value of the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.
Parameters: Index (int) – Return type: gp_Vec
-
Tang2d
()¶ - returns the tangency value of the point of range Index. An exception is raised if Index < number of 3d points or if Index > total number of points.
Parameters: Index (int) – Return type: gp_Vec2d
-
thisown
¶ The membership flag
-
class
AppDef_MyBSplGradientOfBSplineCompute
(*args)¶ Bases:
object
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- Parameters (math_Vector &) –
- Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
- Deg (int) –
- Tol3d (float) –
- Tol2d (float) –
- NbIterations (int) – default value is 1
- SSP –
- FirstPoint –
- LastPoint –
- TheConstraints –
- Parameters –
- Knots –
- Mults –
- Deg –
- Tol3d –
- Tol2d –
- NbIterations –
- lambda1 (float) –
- lambda2 (float) –
Return type: Return type: -
Value
()¶ Return type: AppParCurves_MultiBSpCurve
-
thisown
¶ The membership flag
-
class
AppDef_MyGradientOfCompute
(*args)¶ Bases:
object
Parameters: Return type: -
Value
()¶ Return type: AppParCurves_MultiCurve
-
thisown
¶ The membership flag
-
-
class
AppDef_MyGradientbisOfBSplineCompute
(*args)¶ Bases:
object
Parameters: Return type: -
Value
()¶ Return type: AppParCurves_MultiCurve
-
thisown
¶ The membership flag
-
-
class
AppDef_MyLineTool
¶ Bases:
object
-
static
Curvature
()¶ - returns the 3d curvatures of the multipoint <MPointIndex> when only 3d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
Return type: - returns the 2d curvatures of the multipoint <MPointIndex> only when 2d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type: - returns the 3d and 2d curvatures of the multipoint <MPointIndex>.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type:
-
static
FirstPoint
()¶ - Returns the first index of multipoints of the MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
static
LastPoint
()¶ - Returns the last index of multipoints of the MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
static
MakeMLBetween
()¶ - Is never called in the algorithms. Nothing is done.
Parameters: Return type:
-
static
NbP2d
()¶ - Returns the number of 2d points of a MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
static
NbP3d
()¶ - Returns the number of 3d points of a MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
static
Tangency
()¶ - returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
Return type: - returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type: - returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type:
-
static
Value
()¶ - returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabPt (TColgp_Array1OfPnt) –
Return type: void
- returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabPt2d (TColgp_Array1OfPnt2d) –
Return type: void
- returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabPt (TColgp_Array1OfPnt) –
- tabPt2d (TColgp_Array1OfPnt2d) –
Return type: void
-
static
WhatStatus
()¶ - returns NoPointsAdded
Parameters: Return type: Approx_Status
-
thisown
¶ The membership flag
-
static
-
AppDef_MyLineTool_Curvature
()¶ - returns the 3d curvatures of the multipoint <MPointIndex> when only 3d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
Return type: - returns the 2d curvatures of the multipoint <MPointIndex> only when 2d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type: - returns the 3d and 2d curvatures of the multipoint <MPointIndex>.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type:
-
AppDef_MyLineTool_FirstPoint
()¶ - Returns the first index of multipoints of the MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
AppDef_MyLineTool_LastPoint
()¶ - Returns the last index of multipoints of the MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
AppDef_MyLineTool_MakeMLBetween
()¶ - Is never called in the algorithms. Nothing is done.
Parameters: Return type:
-
AppDef_MyLineTool_NbP2d
()¶ - Returns the number of 2d points of a MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
AppDef_MyLineTool_NbP3d
()¶ - Returns the number of 3d points of a MultiLine.
Parameters: ML (AppDef_MultiLine &) – Return type: int
-
AppDef_MyLineTool_Tangency
()¶ - returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
Return type: - returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type: - returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabV (TColgp_Array1OfVec) –
- tabV2d (TColgp_Array1OfVec2d) –
Return type:
-
AppDef_MyLineTool_Value
()¶ - returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabPt (TColgp_Array1OfPnt) –
Return type: void
- returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabPt2d (TColgp_Array1OfPnt2d) –
Return type: void
- returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters: - ML (AppDef_MultiLine &) –
- MPointIndex (int) –
- tabPt (TColgp_Array1OfPnt) –
- tabPt2d (TColgp_Array1OfPnt2d) –
Return type: void
-
AppDef_MyLineTool_WhatStatus
()¶ - returns NoPointsAdded
Parameters: Return type: Approx_Status
-
class
AppDef_ParFunctionOfMyGradientOfCompute
(*args)¶ Bases:
OCC.math.math_MultipleVarFunctionWithGradient
Parameters: Return type: -
CurveValue
()¶ Return type: AppParCurves_MultiCurve
-
FirstConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- FirstPoint (int) –
Return type: AppParCurves_Constraint
-
LastConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- LastPoint (int) –
Return type: AppParCurves_Constraint
-
NewParameters
()¶ Return type: math_Vector
-
thisown
¶ The membership flag
-
-
class
AppDef_ParFunctionOfMyGradientbisOfBSplineCompute
(*args)¶ Bases:
OCC.math.math_MultipleVarFunctionWithGradient
Parameters: Return type: -
CurveValue
()¶ Return type: AppParCurves_MultiCurve
-
FirstConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- FirstPoint (int) –
Return type: AppParCurves_Constraint
-
LastConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- LastPoint (int) –
Return type: AppParCurves_Constraint
-
NewParameters
()¶ Return type: math_Vector
-
thisown
¶ The membership flag
-
-
class
AppDef_ParFunctionOfTheGradient
(*args)¶ Bases:
OCC.math.math_MultipleVarFunctionWithGradient
Parameters: Return type: -
CurveValue
()¶ Return type: AppParCurves_MultiCurve
-
FirstConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- FirstPoint (int) –
Return type: AppParCurves_Constraint
-
LastConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- LastPoint (int) –
Return type: AppParCurves_Constraint
-
NewParameters
()¶ Return type: math_Vector
-
thisown
¶ The membership flag
-
-
class
AppDef_ParLeastSquareOfMyGradientOfCompute
(*args)¶ Bases:
object
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- FirstCons (AppParCurves_Constraint) –
- LastCons (AppParCurves_Constraint) –
- Parameters (math_Vector &) –
- NbPol (int) –
- SSP –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
- SSP –
- Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- Parameters –
- NbPol –
- SSP –
- Knots –
- Mults –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
Return type: Return type: Return type: Return type: -
BSplineValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
BezierValue
()¶ Return type: AppParCurves_MultiCurve
-
DerivativeFunctionMatrix
()¶ Return type: math_Matrix
-
Distance
()¶ Return type: math_Matrix
-
ErrorGradient
()¶ Parameters: - Grad (math_Vector &) –
- F (float &) –
- MaxE3d (float &) –
- MaxE2d (float &) –
Return type:
-
FunctionMatrix
()¶ Return type: math_Matrix
-
KIndex
()¶ Return type: math_IntegerVector
-
Perform
()¶ Parameters: Return type: Return type: Return type: Return type:
-
Points
()¶ Return type: math_Matrix
-
Poles
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
class
AppDef_ParLeastSquareOfMyGradientbisOfBSplineCompute
(*args)¶ Bases:
object
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- FirstCons (AppParCurves_Constraint) –
- LastCons (AppParCurves_Constraint) –
- Parameters (math_Vector &) –
- NbPol (int) –
- SSP –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
- SSP –
- Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- Parameters –
- NbPol –
- SSP –
- Knots –
- Mults –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
Return type: Return type: Return type: Return type: -
BSplineValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
BezierValue
()¶ Return type: AppParCurves_MultiCurve
-
DerivativeFunctionMatrix
()¶ Return type: math_Matrix
-
Distance
()¶ Return type: math_Matrix
-
ErrorGradient
()¶ Parameters: - Grad (math_Vector &) –
- F (float &) –
- MaxE3d (float &) –
- MaxE2d (float &) –
Return type:
-
FunctionMatrix
()¶ Return type: math_Matrix
-
KIndex
()¶ Return type: math_IntegerVector
-
Perform
()¶ Parameters: Return type: Return type: Return type: Return type:
-
Points
()¶ Return type: math_Matrix
-
Poles
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
class
AppDef_ParLeastSquareOfTheGradient
(*args)¶ Bases:
object
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- FirstCons (AppParCurves_Constraint) –
- LastCons (AppParCurves_Constraint) –
- Parameters (math_Vector &) –
- NbPol (int) –
- SSP –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
- SSP –
- Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- Parameters –
- NbPol –
- SSP –
- Knots –
- Mults –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
Return type: Return type: Return type: Return type: -
BSplineValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
BezierValue
()¶ Return type: AppParCurves_MultiCurve
-
DerivativeFunctionMatrix
()¶ Return type: math_Matrix
-
Distance
()¶ Return type: math_Matrix
-
ErrorGradient
()¶ Parameters: - Grad (math_Vector &) –
- F (float &) –
- MaxE3d (float &) –
- MaxE2d (float &) –
Return type:
-
FunctionMatrix
()¶ Return type: math_Matrix
-
KIndex
()¶ Return type: math_IntegerVector
-
Perform
()¶ Parameters: Return type: Return type: Return type: Return type:
-
Points
()¶ Return type: math_Matrix
-
Poles
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
class
AppDef_ResConstraintOfMyGradientOfCompute
(*args)¶ Bases:
object
Parameters: Return type: -
ConstraintDerivative
()¶ Parameters: - SSP (AppDef_MultiLine &) –
- Parameters (math_Vector &) –
- Deg (int) –
- DA (math_Matrix &) –
Return type:
-
ConstraintMatrix
()¶ Return type: math_Matrix
-
Duale
()¶ Return type: math_Vector
-
InverseMatrix
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
-
class
AppDef_ResConstraintOfMyGradientbisOfBSplineCompute
(*args)¶ Bases:
object
Parameters: Return type: -
ConstraintDerivative
()¶ Parameters: - SSP (AppDef_MultiLine &) –
- Parameters (math_Vector &) –
- Deg (int) –
- DA (math_Matrix &) –
Return type:
-
ConstraintMatrix
()¶ Return type: math_Matrix
-
Duale
()¶ Return type: math_Vector
-
InverseMatrix
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
-
class
AppDef_ResConstraintOfTheGradient
(*args)¶ Bases:
object
Parameters: Return type: -
ConstraintDerivative
()¶ Parameters: - SSP (AppDef_MultiLine &) –
- Parameters (math_Vector &) –
- Deg (int) –
- DA (math_Matrix &) –
Return type:
-
ConstraintMatrix
()¶ Return type: math_Matrix
-
Duale
()¶ Return type: math_Vector
-
InverseMatrix
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
-
class
AppDef_SmoothCriterion
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
AssemblyTable
()¶ Return type: Handle_FEmTool_HAssemblyTable
-
DependenceTable
()¶ Return type: Handle_TColStd_HArray2OfInteger
-
ErrorValues
()¶ Parameters: - MaxError (float &) –
- QuadraticError (float &) –
- AverageError (float &) –
Return type: void
-
GetCurve
()¶ Parameters: C (Handle_FEmTool_Curve &) – Return type: void
-
GetEstimation
()¶ Parameters: - E1 (float &) –
- E2 (float &) –
- E3 (float &) –
Return type: void
-
GetHandle
()¶
-
GetWeight
()¶ Parameters: - QuadraticWeight (float &) –
- QualityWeight (float &) –
Return type: void
-
Hessian
()¶ Parameters: Return type: void
-
InputVector
()¶ - Convert the assembly Vector in an Curve;
Parameters: - X (math_Vector &) –
- AssTable (Handle_FEmTool_HAssemblyTable &) –
Return type: void
-
QualityValues
()¶ Parameters: Return type:
-
SetCurve
()¶ Parameters: C (Handle_FEmTool_Curve &) – Return type: void
-
SetParameters
()¶ Parameters: Parameters (Handle_TColStd_HArray1OfReal &) – Return type: void
-
SetWeight
()¶ Parameters: Return type: void
Return type: void
-
thisown
¶ The membership flag
-
-
class
AppDef_TheFunction
(*args)¶ Bases:
OCC.math.math_MultipleVarFunctionWithGradient
Parameters: Return type: -
CurveValue
()¶ Return type: AppParCurves_MultiCurve
-
FirstConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- FirstPoint (int) –
Return type: AppParCurves_Constraint
-
LastConstraint
()¶ Parameters: - TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- LastPoint (int) –
Return type: AppParCurves_Constraint
-
NewParameters
()¶ Return type: math_Vector
-
thisown
¶ The membership flag
-
-
class
AppDef_TheGradient
(*args)¶ Bases:
object
Parameters: Return type: -
Value
()¶ Return type: AppParCurves_MultiCurve
-
thisown
¶ The membership flag
-
-
class
AppDef_TheLeastSquares
(*args)¶ Bases:
object
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- FirstCons (AppParCurves_Constraint) –
- LastCons (AppParCurves_Constraint) –
- Parameters (math_Vector &) –
- NbPol (int) –
- SSP –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
- SSP –
- Knots (TColStd_Array1OfReal &) –
- Mults (TColStd_Array1OfInteger &) –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- Parameters –
- NbPol –
- SSP –
- Knots –
- Mults –
- FirstPoint –
- LastPoint –
- FirstCons –
- LastCons –
- NbPol –
Return type: Return type: Return type: Return type: -
BSplineValue
()¶ Return type: AppParCurves_MultiBSpCurve
-
BezierValue
()¶ Return type: AppParCurves_MultiCurve
-
DerivativeFunctionMatrix
()¶ Return type: math_Matrix
-
Distance
()¶ Return type: math_Matrix
-
ErrorGradient
()¶ Parameters: - Grad (math_Vector &) –
- F (float &) –
- MaxE3d (float &) –
- MaxE2d (float &) –
Return type:
-
FunctionMatrix
()¶ Return type: math_Matrix
-
KIndex
()¶ Return type: math_IntegerVector
-
Perform
()¶ Parameters: Return type: Return type: Return type: Return type:
-
Points
()¶ Return type: math_Matrix
-
Poles
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
class
AppDef_TheResol
(*args)¶ Bases:
object
Parameters: Return type: -
ConstraintDerivative
()¶ Parameters: - SSP (AppDef_MultiLine &) –
- Parameters (math_Vector &) –
- Deg (int) –
- DA (math_Matrix &) –
Return type:
-
ConstraintMatrix
()¶ Return type: math_Matrix
-
Duale
()¶ Return type: math_Vector
-
InverseMatrix
()¶ Return type: math_Matrix
-
thisown
¶ The membership flag
-
-
class
AppDef_Variational
(*args)¶ Bases:
object
- Constructor. Initialization of the fields. warning : Nc0 : number of PassagePoint consraints Nc2 : number of TangencyPoint constraints Nc3 : number of CurvaturePoint constraints if ((MaxDegree-Continuity)*MaxSegment -Nc0 - 2*Nc1 -3*Nc2) is negative The problem is over-constrained. //! Limitation : The MultiLine from AppDef has to be composed by only one Line ( Dimension 2 or 3).
Parameters: - SSP (AppDef_MultiLine &) –
- FirstPoint (int) –
- LastPoint (int) –
- TheConstraints (Handle_AppParCurves_HArray1OfConstraintCouple &) –
- MaxDegree (int) – default value is 14
- MaxSegment (int) – default value is 100
- Continuity (GeomAbs_Shape) – default value is GeomAbs_C2
- WithMinMax (bool) – default value is Standard_False
- WithCutting (bool) – default value is Standard_True
- Tolerance (float) – default value is 1.0
- NbIterations (int) – default value is 2
Return type: -
AverageError
()¶ - returns the average error between the MultiLine from AppDef and the approximation.
Return type: float
-
Continuity
()¶ - returns the Continuity used in the approximation
Return type: GeomAbs_Shape
-
Criterium
()¶ - returns the values of the quality criterium.
Parameters: - VFirstOrder (float &) –
- VSecondOrder (float &) –
- VThirdOrder (float &) –
Return type:
-
CriteriumWeight
()¶ - returns the Weights (as percent) associed to the criterium used in the optimization.
Parameters: - Percent1 (float &) –
- Percent2 (float &) –
- Percent3 (float &) –
Return type:
-
Distance
()¶ - returns the distances between the points of the multiline and the approximation curves.
Parameters: mat (math_Matrix &) – Return type: None
-
DumpToString
()¶ AppDef_Variational_DumpToString(AppDef_Variational self) -> std::string
-
IsCreated
()¶ - returns True if the creation is done and correspond to the current fields.
Return type: bool
-
IsDone
()¶ - returns True if the approximation is ok and correspond to the current fields.
Return type: bool
-
IsOverConstrained
()¶ - returns True if the problem is overconstrained in this case, approximation cannot be done.
Return type: bool
-
Knots
()¶ - returns the knots uses to the approximations
Return type: Handle_TColStd_HArray1OfReal
-
MaxError
()¶ - returns the maximum of the distances between the points of the multiline and the approximation curves.
Return type: float
-
Parameters
()¶ - returns the parameters uses to the approximations
Return type: Handle_TColStd_HArray1OfReal
-
QuadraticError
()¶ - returns the quadratic average of the distances between the points of the multiline and the approximation curves.
Return type: float
-
SetConstraints
()¶ - Define the constraints to approximate If this value is incompatible with the others fields this method modify nothing and returns false
Parameters: aConstrainst (Handle_AppParCurves_HArray1OfConstraintCouple &) – Return type: bool
-
SetContinuity
()¶ - Define the Continuity used in the approximation If this value is incompatible with the others fields this method modify nothing and returns false
Parameters: C (GeomAbs_Shape) – Return type: bool
-
SetCriteriumWeight
()¶ - define the Weights (as percent) associed to the criterium used in the optimization. //! if Percent <= 0
Parameters: Return type: - define the Weight (as percent) associed to the criterium Order used in the optimization : Others weights are updated. if Percent < 0 if Order < 1 or Order > 3
Parameters: Return type:
-
SetKnots
()¶ - Defines the knots used by the approximations If this value is incompatible with the others fields this method modify nothing and returns false
Parameters: knots (Handle_TColStd_HArray1OfReal &) – Return type: bool
-
SetMaxDegree
()¶ - Define the Maximum Degree used in the approximation If this value is incompatible with the others fields this method modify nothing and returns false
Parameters: Degree (int) – Return type: bool
-
SetMaxSegment
()¶ - Define the maximum number of segments used in the approximation If this value is incompatible with the others fields this method modify nothing and returns false
Parameters: NbSegment (int) – Return type: bool
-
SetNbIterations
()¶ - define the number of iterations used in the approximation. if Iter < 1
Parameters: Iter (int) – Return type: None
-
SetParameters
()¶ - Defines the parameters used by the approximations.
Parameters: param (Handle_TColStd_HArray1OfReal &) – Return type: None
-
SetTolerance
()¶ - define the tolerance used in the approximation.
Parameters: Tol (float) – Return type: None
-
SetWithCutting
()¶ - Define if the approximation can insert new Knots or not. If this value is incompatible with the others fields this method modify nothing and returns false
Parameters: Cutting (bool) – Return type: bool
-
SetWithMinMax
()¶ - Define if the approximation search to minimize the maximum Error or not.
Parameters: MinMax (bool) – Return type: None
-
Value
()¶ - returns all the BSpline curves approximating the MultiLine from AppDef SSP after minimization of the parameter.
Return type: AppParCurves_MultiBSpCurve
-
WithMinMax
()¶ - returns if the approximation search to minimize the maximum Error or not.
Return type: bool
-
thisown
¶ The membership flag
-
class
Handle_AppDef_HArray1OfMultiPointConstraint
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_AppDef_LinearCriteria
(*args)¶ Bases:
OCC.AppDef.Handle_AppDef_SmoothCriterion
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_AppDef_SmoothCriterion
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases