OpenVSPAPI  3.19.0
Functions
XSecSurf Functions

This group of API functions provides capabilities related to the XSecSurf class in OpenVSP.

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

Functions

int GetNumXSecSurfs (const string &in geom_id)
 
string GetXSecSurf (const string &in geom_id, int index)
 
int GetNumXSec (const string &in xsec_surf_id)
 
string GetXSec (const string &in xsec_surf_id, int xsec_index)
 
void ChangeXSecShape (const string &in xsec_surf_id, int xsec_index, int type)
 
void SetXSecSurfGlobalXForm (const string &in xsec_surf_id, const Matrix4d &in mat)
 
Matrix4d GetXSecSurfGlobalXForm (const string &in xsec_surf_id)
 

Detailed Description

Function Documentation

◆ ChangeXSecShape()

void ChangeXSecShape ( const string &in  xsec_surf_id,
int  xsec_index,
int  type 
)

Change the shape of a particular XSec, identified by an XSecSurf ID and XSec index

See also
XSEC_CRV_TYPE
Parameters
[in]xsec_surf_idXSecSurf ID
[in]xsec_indexXsec index
[in]typeXsec type enum (i.e. XS_ELLIPSE)

◆ GetNumXSec()

int GetNumXSec ( const string &in  xsec_surf_id)

Get number of XSecs in an XSecSurf

Parameters
[in]xsec_surf_idXSecSurf ID
Returns
Number of XSecs

◆ GetNumXSecSurfs()

int GetNumXSecSurfs ( const string &in  geom_id)

Get the number of XSecSurfs for the specified Geom

Parameters
[in]geom_idGeom ID
Returns
Number of XSecSurfs

◆ GetXSec()

string GetXSec ( const string &in  xsec_surf_id,
int  xsec_index 
)

Get Xsec ID for a particular XSecSurf at given index

Parameters
[in]xsec_surf_idXSecSurf ID
[in]xsec_indexXsec index
Returns
Xsec ID

◆ GetXSecSurf()

string GetXSecSurf ( const string &in  geom_id,
int  index 
)

Get the XSecSurf ID for a particular Geom and XSecSurf index

Parameters
[in]geom_idGeom ID
[in]indexXSecSurf index
Returns
XSecSurf ID

◆ GetXSecSurfGlobalXForm()

Matrix4d GetXSecSurfGlobalXForm ( const string &in  xsec_surf_id)

Get the global surface transform matrix for given XSecSurf

Parameters
[in]xsec_surf_idXSecSurf ID
Returns
Transformation matrix

◆ SetXSecSurfGlobalXForm()

void SetXSecSurfGlobalXForm ( const string &in  xsec_surf_id,
const Matrix4d &in  mat 
)

Set the global surface transform matrix for given XSecSurf

Parameters
[in]xsec_surf_idXSecSurf ID
[in]matTransformation matrix