OpenVSPAPI  3.19.0
Functions
Group Modification Functions

The functions in this group allow for sets to be scaled, rotated, and translated.

Click here to return to the main page. More...

Functions

void ScaleSet (int set_index, double scale)
 
void RotateSet (int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg)
 
void TranslateSet (int set_index, const vec3d &in translation_vec)
 
void TransformSet (int set_index, const vec3d &in translation_vec, double x_rot_deg, double y_rot_deg, double z_rot_deg, double scale, bool scale_translations_flag)
 

Detailed Description

Function Documentation

◆ RotateSet()

void RotateSet ( int  set_index,
double  x_rot_deg,
double  y_rot_deg,
double  z_rot_deg 
)

Rotate a set about the global X, Y, and Z axes

Parameters
[in]set_indexSet index
[in]x_rot_degRotation about the X axis (degrees)
[in]y_rot_degRotation about the Y axis (degrees)
[in]z_rot_degRotation about the Z axis (degrees)

◆ ScaleSet()

void ScaleSet ( int  set_index,
double  scale 
)

Apply a scale factor to a set

Parameters
[in]set_indexSet index
[in]scaleScale factor

◆ TransformSet()

void TransformSet ( int  set_index,
const vec3d &in  translation_vec,
double  x_rot_deg,
double  y_rot_deg,
double  z_rot_deg,
double  scale,
bool  scale_translations_flag 
)

Apply translation, rotation, and scale transformations to a set

See also
TranslateSet, RotateSet, ScaleSet
Parameters
[in]set_indexSet index
[in]translation_vecTranslation vector
[in]x_rot_degRotation about the X axis (degrees)
[in]y_rot_degRotation about the Y axis (degrees)
[in]z_rot_degRotation about the Z axis (degrees)
[in]scaleScale factor
[in]scale_translations_flagFlag to apply the scale factor to translations

◆ TranslateSet()

void TranslateSet ( int  set_index,
const vec3d &in  translation_vec 
)

Translate a set along a given vector

Parameters
[in]set_indexSet index
[in]translation_vecTranslation vector