11.9 Curve
Defines a curve object that mostly parallels Cubit’s RefEdge class. More...
#include <CubitInterfaceEx.hpp>
11.9.1 Inheritance diagram for Curve:

|
|
|
|
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
|
| |
| |
| |
Defines a curve object that mostly parallels Cubit’s RefEdge class.
Member Function Documentation
closest_point()
std::array<double,3> closest_point ( std::array< double, 3 > point)
std::vector<double> point(3, 0); |
std::vector<double> close = curve->closest_point(point); |
close = curve.closest_point([0,0,0]) |
|
|
|
Returns:
The closest point to the Curve from the location specified
closest_point_trimmed()
std::array<double,3> closest_point_trimmed ( std::array< double, 3 > point)
std::vector<double> point(3, 0); |
std::vector<double> close = curve->closest_point(point); |
close = curve.closest_point([0,0,0]) |
|
|
|
Returns:
The closest point to the Curve from the location specified
color() [1/2]
int color ( )
Returns:
The color value associated with the curve’s current color
color() [2/2]
void color ( int value)
|
|
|
std::array<double,3> curvature ( std::array< double, 3 > point)
|
|
|
Returns:
The curvature of the Curve at the location specified
curve_center()
std::array<double,3> curve_center ( )
std::array<double,3> center = curve->curve_center(); |
center = curve.curve_center() |
Returns:
A vector containing the coordinates of the Curve’s center according to the following:
0 - x coordinate
1 - y coordinate
2 - z coordinate
dihedral_angle()
double dihedral_angle ( Curve other, Surface common_surface )
Get the dihedral angle between this curve and another curve relate to the given surface.
|
|
|
|
Returns:
the dihedral angle between the curves, in radians
end_param()
double end_param ( )
Returns:
The ending value of the parameter
fraction_from_arc_length()
double fraction_from_arc_length ( Vertex root_vertex, double length )
double fraction = curve->fraction_from_arc_length(vertex, 0.5); |
fraction = curve.fraction_from_arc_length(vertex, 0.5) |
|
|
|
|
|
Returns:
The fraction of the Curve that is the specified length away from the specified Vertex
is_periodic()
bool is_periodic ( )
bool periodic = curve->is_periodic(); |
periodic = curve.is_periodic() |
Returns:
Whether the Curve is periodic or not
length()
double length ( )
Returns:
The length of the Curve
length_from_u()
double length_from_u ( double parameter1, double parameter2 )
double length = curve->length_from_u(0, 0.5); |
length = curve.length_from_u(0, 0.5) |
|
|
|
|
|
|
Returns:
The length between the two specified paramters along the Curve
point_from_arc_length()
std::array<double,3> point_from_arc_length ( double root_param, double arc_length )
std::vector<double> position = curve->point_from_arc_length(0, 0.5); |
position = curve.point_from_arc_length(0, 0.5) |
|
|
|
|
|
|
Returns:
A vector that contains the coordinates of a position a specified arc length away from the root parameter
position_from_fraction()
std::array<double,3> position_from_fraction ( double fraction_along_curve)
std::array<double,3> pos = curve->position_from_fraction(0.5); |
pos = curve.position_from_fraction(0.5) |
|
|
|
Returns:
A vector containing the coordinates of the position a specified fraction along the Curve:
0 - x coordinate
1 - y coordinate
2 - z coordinate
position_from_u()
std::array<double,3> position_from_u ( double u_value)
std::vector<double> position = curve->position_from_u(0.5); |
position = curve.position_from_u(0.5) |
|
|
|
Returns:
A vector containing the coordinates of the output position
set_color()
void set_color ( int value)
|
|
|
double start_param ( )
double start = curve->start_param(); |
start = curve.start_param() |
Returns:
The beginning value of the parameter
tangent()
std::array<double,3> tangent ( std::array< double, 3 > point)
|
|
|
Returns:
The tangent to the Curve at the location specified
u_from_arc_length()
double u_from_arc_length ( double root_param, double arc_length )
double u = curve->u_from_arc_length(0, 0.5); |
u = curve.u_from_arc_length(0, 0.5) |
|
|
|
|
|
|
Returns:
The u value of the Curve the arc length away from the root parameter
u_from_position()
double u_from_position ( std::array< double, 3 > position)
std::vector<double> point(3, 0); |
double u = curve->u_from_position(point); |
u = curve.u_from_position([0,0,0]) |
|
|
|
Returns:
The u value of the position along the Curve