Cubit 15.3 User Documentation
Defines a curve object that mostly parallels Cubit's RefEdge class.
PyObservable
Entity
GeomEntity
Curve
color | Set the color of the Curve. | |
int | color | Get the color of the Curve. |
[ float ] | tangent | Get the tangent to the Curve at a particular point. |
[ float ] | curvature | Get the curvature of the Curve at a particular point. |
[ float ] | closest_point | Get the curvature of the Curve at a particular point. |
[ float ] | closest_point_trimmed | Get the curvature of the Curve at a particular point. |
float | length | Get the length of the Curve. |
[ float ] | curve_center | Get the center point of the Curve. |
[ float ] | position_from_fraction | Get the position of the point a specified fraction along the Curve. |
float | start_param | Get the lowest value of the Curve in uv space. |
float | end_param | Get the highest value of the Curve in uv space. |
float | u_from_position | Get the u value of a particular position on the Curve. |
[ float ] | position_from_u | Get the position of a particular u value for the Curve. |
float | u_from_arc_length | Get the u value for a point a specified arc length away from a specified root parameter on the Curve. |
float | fraction_from_arc_length | Get the fraction along the Curve a specified arc length is away from a given Vertex. |
[ float ] | point_from_arc_length | Get the position on a Curve that is a specified arc length away from the specified root parameter. |
float | length_from_u | Get the length between two specified parameters on a Curve. |
Bool | is_periodic | Get whether the Curve is periodic or not. |
curve.color(0)
value | The color value that the curve will have |
col = curve.color()
The color value associated with the curve's current color
tan = curve.tangent([0,0,0])
point | A vector containing 3 doubles representing coordinates of a location on the Curve |
The tangent to the Curveat the location specified
curvature = curve.curvature([0,0,0])
point | A vector containing 3 doubles representing coordinates of a location on the Curve |
The curvature of the Curveat the location specified
close = curve.closest_point([0,0,0])
point | A vector containing 3 doubles representing coordinates of a location on the Curve |
The closest point to the Curvefrom the location specified
close = curve.closest_point([0,0,0])
point | A vector containing 3 doubles representing coordinates of a location on the Curve |
The closest point to the Curvefrom the location specified
len = curve.length()
The length of the Curve
center = curve.curve_center()
A vector containing the coordinates of the Curve's center according to the following: 0 - x coordinate 1 - y coordinate 2 - z coordinate
pos = curve.position_from_fraction(0.5)
fraction_along_curve | A decimal value between 0 and 1 to determine a particular position along the Curve |
A vector containing the coordinates of the position a specified fraction along the Curve: 0 - x coordinate 1 - y coordinate 2 - z coordinate
start = curve.start_param()
The beginning value of the parameter
end = curve.end_param()
The ending value of the parameter
u = curve.u_from_position([0,0,0])
position | A vector containing the coordinates of the input position |
The u value of the position along the Curve
position = curve.position_from_u(0.5)
u_value | The u value of the position along the Curve |
A vector containing the coordinates of the output position
u = curve.u_from_arc_length(0, 0.5)
root_param | The beginning parameter from which the arc length is added to |
arc_length | The length away from the root parameter of the output parameter |
The u value of the Curvethe arc length away from the root parameter
fraction = curve.fraction_from_arc_length(vertex, 0.5)
root_vertex | The Vertexto start from (vertex object) |
length | The length along the Curveaway from the root Vertex |
The fraction of the Curvethat is the specified length away from the specified Vertex
position = curve.point_from_arc_length(0, 0.5)
root_param | The root parameter from which the arc length is added to |
arc_length | The arc length along the Curveaway from the root parameter |
A vector that contains the coordinates of a position a specified arc length away from the root parameter
length = curve.length_from_u(0, 0.5)
parameter1 | The beginning parameter |
parameter2 | The ending parameter |
The length between the two specified paramters along the Curve
periodic = curve.is_periodic()
Whether the Curveis periodic or not