Functions for modifying XSecs of type XS_EDIT_CURVE are defined here. Click here to return to the main page. More...
Functions | |
| void | vsp::EditXSecInitShape (const std::string &xsec_id) |
| void | vsp::EditXSecConvertTo (const std::string &xsec_id, const int &newtype) |
| std::vector< double > | vsp::GetEditXSecUVec (const std::string &xsec_id) |
| std::vector< vec3d > | vsp::GetEditXSecCtrlVec (const std::string &xsec_id, bool non_dimensional=true) |
| void | vsp::SetEditXSecPnts (const std::string &xsec_id, const std::vector< double > &u_vec, const std::vector< vec3d > &control_pts, const std::vector< double > &r_vec) |
| void | vsp::EditXSecDelPnt (const std::string &xsec_id, const int &indx) |
| int | vsp::EditXSecSplit01 (const std::string &xsec_id, const double &u) |
| void | vsp::MoveEditXSecPnt (const std::string &xsec_id, const int &indx, const vec3d &new_pnt) |
| void | vsp::ConvertXSecToEdit (const std::string &geom_id, const int &indx=0) |
| std::vector< bool > | vsp::GetEditXSecFixedUVec (const std::string &xsec_id) |
| void | vsp::SetEditXSecFixedUVec (const std::string &xsec_id, std::vector< bool > fixed_u_vec) |
| void | vsp::ReparameterizeEditXSec (const std::string &xsec_id) |
|
extern |
Convert any XSec type into an EditCurveXSec. This function will work for BOR Geoms, in which case the input XSec index is ignored.
| [in] | geom_id | string Geom ID |
| [in] | indx | int XSec index |
|
extern |
Convert the EditCurveXSec curve type to the specified new type. Note, EditCurveXSec uses the same enumerations for PCurve to identify curve type, but APPROX_CEDIT is not supported at this time.
| [in] | xsec_id | string XSec ID |
| [in] | newtype | int New curve type enum (i.e. CEDIT) |
|
extern |
Delete an EditCurveXSec control point. Note, cubic Bezier intermediate control points (those not on the curve) cannot be deleted. The previous and next Bezier control point will be deleted along with the point on the curve. Regardless of curve type, the first and last points may not be deleted.
| [in] | xsec_id | string XSec ID |
| [in] | indx | int Control point index |
|
extern |
Initialize the EditCurveXSec to the current value of m_ShapeType (i.e. EDIT_XSEC_ELLIPSE)
| [in] | xsec_id | string XSec ID |
|
extern |
Split the EditCurveXSec at the specified U value
| [in] | xsec_id | string XSec ID |
| [in] | u | double U value to split the curve at (0 - 1) |
|
extern |
Get the control point vector for an EditCurveXSec. Note, the returned array of vec3d values will be represented in 2D with Z set to 0.
| [in] | xsec_id | string XSec ID |
| [in] | non_dimensional | bool True to get the points non-dimensionalized, False to get them scaled by m_Width and m_Height |
|
extern |
Get the vector of fixed U flags for each control point in an EditCurveXSec. The fixed U flag is used to hold the U parameter of the control point constant when performing an equal arc length reparameterization of the curve.
| [in] | xsec_id | string XSec ID |
|
extern |
Get the U parameter vector for an EditCurveXSec. The vector will be in increasing order with a range of 0 - 1.
| [in] | xsec_id | string XSec ID |
|
extern |
Move an EditCurveXSec control point. The XSec points are nondimensionalized by m_Width and m_Height and defined in 2D, so the Z value of the new coordinate point will be ignored.
| [in] | xsec_id | string XSec ID |
| [in] | indx | int Control point index |
| [in] | new_pnt | vec3d Coordinate of the new point |
|
extern |
Perform an equal arc length repareterization on an EditCurveXSec. The reparameterization is performed between specific U values if the Fixed U flag is true. This allows corners, such as at 0.25, 0.5, and 0.75 U, to be held constant while everything between them is reparameterized.
| [in] | xsec_id | string XSec ID |
|
extern |
Set the vector of fixed U flags for each control point in an EditCurveXSec. The fixed U flag is used to hold the U parameter of the control point constant when performing an equal arc length reparameterization of the curve.
| [in] | xsec_id | string XSec ID |
| [in] | fixed_u_vec | vector <bool> Array of fixed U flags |
|
extern |
Set the U parameter vector and the control point vector for an EditCurveXSec. The arrays must be of equal length, with the values for U defined in increasing order and range 0 - 1. The input control points to SetEditXSecPnts must be nondimensionalized in the approximate range of [-0.5, 0.5].
| [in] | xsec_id | string XSec ID |
| [in] | u_vec | vector <double> Array of U parameter values |
| [in] | r_vec | vector <double> Array of R parameter values |
| [in] | control_pts | vector <vec3d> Nondimensionalized array of control points |