pycatia.sketcher_interfaces.curve_2D¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.sketcher_interfaces.curve_2D.Curve2D(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSketcherInterfaces.GeometricElementSketcherInterfaces.Geometry2DCurve2DClass defining a curve in 2D Space.- property continuity: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Continuity() As short (Read Only)Returns the highest level of geometric continuity the curvepossesses.Parameters:oLevelThe maximum geometric continuity level
- Return type:
int
- property end_point: Point2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property EndPoint() As Point2DReturns the end point of the curve. The end point is decided with respectto the logical flow imposed on the curve by the object.Parameters:oEndPointThe end point of the curve
- Return type:
- get_curvature(i_param: float) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetCurvature(double iParam,CATSafeArrayVariant oCurvature)Returns the curvature and curvature direction at the parameterspecified.Parameters:iParamThe parameter of the chosen point on the curve.oCurvature[0]The curvature at the specified parameter.oCurvature[1;2]The unit-vector of curvature direction at the specifiedparameter.
- Parameters:
i_param (float) –
- Return type:
tuple
- get_derivatives(i_param: float) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetDerivatives(double iParam,CATSafeArrayVariant oDerivative)Returns the first, second and third derivatives at the parameterspecified.Parameters:iParamThe parameter of the chosen point on the curve.oDerivative[0]First degree derivative.oDerivative[1]Second degree derivative.oDerivative[2]Third degree derivative.
- Parameters:
i_param (float) –
- Return type:
tuple
- get_end_points() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetEndPoints(CATSafeArrayVariant oEndPoints)Returns the end-points of the curve. The start point and the end point aredecided with respect to the logical flow imposed on the curve by theobject.Parameters:oEndPoints[0]The x coordinate of the start pointoEndPoints[1]The y coordinate of the start pointoEndPoints[2]The x coordinate of the end pointoEndPoints[3]The y coordinate of the end point
- Return type:
tuple
- get_length_at_param(i_from_param: float, i_to_param: float) float ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetLengthAtParam(double iFromParam,double iToParam) As doubleReturns the length, measured along the curve, from a given parameter to agiven parameter.Parameters:iFromParamThe parameter from which the length is to be measured.iToParamThe parameter to which the length is to be measured.oLengthThe length between the parameters
- Parameters:
i_from_param (float) –
i_to_param (float) –
- Return type:
float
- get_param_at_length(i_from_param: float, i_length: float) float ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetParamAtLength(double iFromParam,double iLength) As doubleReturns the parameter at a given length, measured along the curve, startingfrom a given parameter. The direction of measurement is always in the directionof the logical flow of the curve. If no inherent logical flow can be assignedthe direction is the direction of increasingparameterization.Parameters:iFromParamThe parameter from which the length needs to be measured.iLengthThe length of the curve to be measured from iFromParam in thelogical flow direction of the curve.oParamThe computed parameter.
- Parameters:
i_from_param (float) –
i_length (float) –
- Return type:
float
- get_param_extents() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetParamExtents(CATSafeArrayVariant oParams)Returns the parametric extents of the curve. This is the parametricequivalent of the end-points.Parameters:oParams[0]The parameter associated with the start point of the curveoParams[1]The parameter associated with the end point of thecurve
- Return type:
tuple
- get_point_at_param(i_param: float) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPointAtParam(double iParam,CATSafeArrayVariant oPoint)Returns a point on the curve computed from an inputparameter.Parameters:iParamThe parameteroPointThe X and Y coordinates of the computed 2D spacepoint.
- Parameters:
i_param (float) –
- Return type:
tuple
- get_range_box() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetRangeBox(CATSafeArrayVariant oBoundPoint)Returns the range box (or bounding box) of the objectThe box is axially aligned within the local coordinate system of theserver.Parameters:oBoundPoint[0]The minimum x point of the boxoBoundPoint[1]The minimum y point of the boxoBoundPoint[2]The maximum x point of the boxoBoundPoint[3]The maximum y point of the box
- Return type:
tuple
- get_tangent(i_param: float) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetTangent(double iParam,CATSafeArrayVariant oTangency)Returns the unit-vector tangent at the parameterspecified.Parameters:iParamThe parameter of the chosen point on the curve.oTangencyThe X and Y coordinates of the unit-vector tangent at the specifiedparameter.
- I_param:
float
- Return type:
None
- is_periodic() bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func IsPeriodic() As booleanSpecifies whether a curve is periodic or not.Parameters:oPeriodicReturns true if the curve is periodic.
- Return type:
bool
- property period: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Period() As double (Read Only)Returns the period of a periodic curve.Parameters:oPeriodThe period of the curve.
- Return type:
float
- property start_point: Point2D¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property StartPoint() As Point2DReturns the start point of the curve. The start point is decided withrespect to the logical flow imposed on the curve by theobject.Parameters:oStartPointThe start point of the curve
- Return type: