The functions in this group allow for sets to be scaled, rotated, and translated. Click here to return to the main page.
More...
|
void | vsp::ScaleSet (int set_index, double scale) |
|
void | vsp::RotateSet (int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg) |
|
void | vsp::TranslateSet (int set_index, const vec3d &translation_vec) |
|
void | vsp::TransformSet (int set_index, const vec3d &translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag) |
|
◆ RotateSet()
void vsp::RotateSet |
( |
int | set_index, |
|
|
double | x_rot_deg, |
|
|
double | y_rot_deg, |
|
|
double | z_rot_deg ) |
|
extern |
Rotate a set about the global X, Y, and Z axes
string fuseid =
AddGeom(
"FUSELAGE" );
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
void RotateSet(int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg)
void SetSetFlag(const std::string &geom_id, int set_index, bool flag)
- Parameters
-
[in] | set_index | Set index |
[in] | x_rot_deg | Rotation about the X axis (degrees) |
[in] | y_rot_deg | Rotation about the Y axis (degrees) |
[in] | z_rot_deg | Rotation about the Z axis (degrees) |
◆ ScaleSet()
void vsp::ScaleSet |
( |
int | set_index, |
|
|
double | scale ) |
|
extern |
Apply a scale factor to a set
string fuseid =
AddGeom(
"FUSELAGE" );
void ScaleSet(int set_index, double scale)
- Parameters
-
[in] | set_index | Set index |
[in] | scale | Scale factor |
◆ TransformSet()
void vsp::TransformSet |
( |
int | set_index, |
|
|
const vec3d & | translation_vec, |
|
|
double | x_rot_deg, |
|
|
double | y_rot_deg, |
|
|
double | z_rot_deg, |
|
|
double | scale, |
|
|
bool | scale_translations_flag ) |
|
extern |
Apply translation, rotation, and scale transformations to a set
string fuseid =
AddGeom(
"FUSELAGE" );
void TransformSet(int set_index, const vec3d &translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag)
- See also
- TranslateSet, RotateSet, ScaleSet
- Parameters
-
[in] | set_index | Set index |
[in] | translation_vec | Translation vector |
[in] | x_rot_deg | Rotation about the X axis (degrees) |
[in] | y_rot_deg | Rotation about the Y axis (degrees) |
[in] | z_rot_deg | Rotation about the Z axis (degrees) |
[in] | scale | Scale factor |
[in] | scale_translations_flag | Flag to apply the scale factor to translations |
◆ TranslateSet()
void vsp::TranslateSet |
( |
int | set_index, |
|
|
const vec3d & | translation_vec ) |
|
extern |
Translate a set along a given vector
string fuseid =
AddGeom(
"FUSELAGE" );
void TranslateSet(int set_index, const vec3d &translation_vec)
- Parameters
-
[in] | set_index | Set index |
[in] | translation_vec | Translation vector |