This group of API functions provides capabilities related to the XSecSurf class in OpenVSP. Click here to return to the main page.
More...
◆ ChangeXSecShape()
void vsp::ChangeXSecShape |
( |
const std::string & | xsec_surf_id, |
|
|
int | xsec_index, |
|
|
int | type ) |
|
extern |
Change the shape of a particular XSec, identified by an XSecSurf ID and XSec index
string sid =
AddGeom(
"STACK",
"" );
string xsec_2 =
GetXSec( xsec_surf, 2 );
{
Print( "Error: ChangeXSecShape" );
}
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
int GetXSecShape(const std::string &xsec_id)
std::string GetXSecSurf(const std::string &geom_id, int index)
std::string GetXSec(const std::string &xsec_surf_id, int xsec_index)
void ChangeXSecShape(const std::string &xsec_surf_id, int xsec_index, int type)
- See also
- XSEC_CRV_TYPE
- Parameters
-
[in] | xsec_surf_id | XSecSurf ID |
[in] | xsec_index | Xsec index |
[in] | type | Xsec type enum (i.e. XS_ELLIPSE) |
◆ GetNumXSec()
int vsp::GetNumXSec |
( |
const std::string & | xsec_surf_id | ) |
|
|
extern |
Get number of XSecs in an XSecSurf
string sid =
AddGeom(
"STACK",
"" );
for ( int i = 0 ; i < num_xsecs ; i++ )
{
string xsec =
GetXSec( xsec_surf, i );
}
void SetXSecTanStrengths(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
void SetXSecTanAngles(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
int GetNumXSec(const std::string &xsec_surf_id)
- Parameters
-
[in] | xsec_surf_id | XSecSurf ID |
- Returns
- Number of XSecs
◆ GetNumXSecSurfs()
int vsp::GetNumXSecSurfs |
( |
const std::string & | geom_id | ) |
|
|
extern |
Get the number of XSecSurfs for the specified Geom
string fuseid =
AddGeom(
"FUSELAGE",
"" );
if ( num_xsec_surfs != 1 ) { Print( "---> Error: API GetNumXSecSurfs " ); }
int GetNumXSecSurfs(const std::string &geom_id)
- Parameters
-
[in] | geom_id | string Geom ID |
- Returns
- int Number of XSecSurfs
◆ GetXSec()
std::string vsp::GetXSec |
( |
const std::string & | xsec_surf_id, |
|
|
int | xsec_index ) |
|
extern |
Get Xsec ID for a particular XSecSurf at given index
string sid =
AddGeom(
"STACK",
"" );
string xsec_1 =
GetXSec( xsec_surf, 1 );
- Parameters
-
[in] | xsec_surf_id | XSecSurf ID |
[in] | xsec_index | Xsec index |
- Returns
- Xsec ID
◆ GetXSecSurf()
std::string vsp::GetXSecSurf |
( |
const std::string & | geom_id, |
|
|
int | index ) |
|
extern |
Get the XSecSurf ID for a particular Geom and XSecSurf index
string sid =
AddGeom(
"STACK",
"" );
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | index | XSecSurf index |
- Returns
- XSecSurf ID
◆ GetXSecSurfGlobalXForm()
Matrix4d vsp::GetXSecSurfGlobalXForm |
( |
const std::string & | xsec_surf_id | ) |
|
|
extern |
Get the global surface transform matrix for given XSecSurf
- Parameters
-
[in] | xsec_surf_id | XSecSurf ID |
- Returns
- Transformation matrix
◆ SetXSecSurfGlobalXForm()
void vsp::SetXSecSurfGlobalXForm |
( |
const std::string & | xsec_surf_id, |
|
|
const Matrix4d & | mat ) |
|
extern |
Set the global surface transform matrix for given XSecSurf
- Parameters
-
[in] | xsec_surf_id | XSecSurf ID |
[in] | mat | Transformation matrix |