Curve Curve.hxx cadex/Geom/Curve.hxx. More...
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
Type (self) | |
Returns a curve type. | |
Continuity (self) | |
Returns a continuity type of the curve. | |
Value (self, theParameter) | |
Evaluates a point on the curve. | |
Normal (self, theParameter) | |
Returns the normal direction theNormal of parameter theParam. | |
Curvature (self, theParameter) | |
Returns the curvature value of parameter theParam. | |
IsPeriodic (self) | |
Returns true if the curve is periodic. | |
UMin (self) | |
Returns a minimum parameter of a definition domain. | |
UMax (self) | |
Returns a maximum parameter of a definition domain. | |
Domain (self) | |
Returns a definition domain. | |
IsTrimmed (self) | |
Returns whether curve is trimmed or not. | |
SetTrim (self, theFirst, theLast) | |
Trims curve with [theFirst, theLast] section. | |
Transform (self, theTransformation) | |
Applies transformation matrix to this object. | |
Transformed (self, theTransformation) | |
D0 (self, theParameter, theValue) | |
Returns the point theValue of parameter theParam. | |
D1 (self, theParameter, theValue, theD1) | |
D2 (self, theParameter, theValue, theD1, theD2) | |
Returns the point theValue of parameter theParam, the first theD1 and second theD2 derivatives. | |
DN (self, theParameter, theDerivativeOrder, theValue, theD) | |
Returns true if calculation completed successfully. | |
Mirror (self, *args) | |
Mirrored (self, *args) | |
Rotate (self, theAxis, theAngle) | |
Rotated (self, theAxis, theAngle) | |
Translate (self, theVector) | |
Translated (self, theVector) | |
Scale (self, thePoint, theScale) | |
Scaled (self, thePoint, theScale) | |
![]() | |
Id (self) | |
Return unique identifier of public object. | |
IsNull (self) | |
Static Public Member Functions | |
CompareType (theObject) | |
Cast (theBase) | |
Curve Curve.hxx cadex/Geom/Curve.hxx.
Base class for 3D curves.
3D curves are used to represent curves in 3D space. Each non-degenerated edge must refer to a 3D curve.
Refer to Curve Types for the list of supported curve types. Type() returns a curve type as enumeration value which can be used to downcast to a respective subclass type, for instance:
Curve is defined using parametric definition as \(\mathbf{C}(t)\) where \(\mathbf{C}\) is a 3D radius-vector \((x,y,z)^\top\) and \(t\) is a parameter from a definition range \([a, b]\).
UMin() and UMax(), and Domain() return parametric definition range. Parametric range can be bounded (e.g. \([0, 2\pi]\) for a circle) or unbounded (e.g. \((-\infty, +\infty)\) for a line).
At any parameter \(t\) within a definition range, the curve can be evaluated as follows:
The following example demonstrates computation of a point on a line at parameter t=2:
If the curve is periodic (IsPeriodic() returns true) then the curve can be evaluated at any parameter t, otherwise behavior is undefined (e.g. an exception can be thrown or a weird value can be returned).
Continuity() returns continuity ( \(C^0\), \(C^1\), \(C^2\), \(C^N\)) of the curve, where \(C^0\) that only the curve itself is continuous, \(C^1\) - that the curve is continuous together with its first derivative, and so on.
The curve can be modified using the following operations:
manufacturingtoolkit.CadExMTK.Geom_Curve.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
|
static |
Reimplemented from manufacturingtoolkit.CadExMTK.Geom_Geometry.
|
static |
Reimplemented from manufacturingtoolkit.CadExMTK.Geom_Geometry.
manufacturingtoolkit.CadExMTK.Geom_Curve.DN | ( | self, | |
theParameter, | |||
theDerivativeOrder, | |||
theValue, | |||
theD ) |
Returns true if calculation completed successfully.
In this case theD contains values of the derivatives from 0 up to theDerivativeOrder. Otherwise returns false. May throw exception if the continuity of the curve is less than theDerivativeOrder.
Parameters: