OpenVSP API Documentation 3.39.0
 
Loading...
Searching...
No Matches
VSP_Geom_API.h
1//
2// This file is released under the terms of the NASA Open Source Agreement (NOSA)
3
4// version 1.3 as detailed in the LICENSE file which accompanies this software.
5//
6
7// API.h: interface for the Vehicle Class and Vehicle Mgr Singleton.
8// J.R Gloudemans
9//
11
185#ifdef SWIG
186%feature("autodoc", 1);
187%feature("doxygen:ignore:forcpponly", range="end");
188%feature("doxygen:ignore:beginPythonOnly", range="end:endPythonOnly", contents="parse");
189
190#endif
191
192
193
194#if !defined(VSPAPI__INCLUDED_)
195#define VSPAPI__INCLUDED_
196
197#include "Defines.h"
198
199#include "APIErrorMgr.h"
200#include "APIUpdateCountMgr.h"
201#include "Vec3d.h"
202#include "Matrix4d.h"
203
204#include <string>
205#include <stack>
206#include <vector>
207
208
209using std::string;
210using std::stack;
211using std::vector;
212
213namespace vsp
214{
215
216//======================== API Functions ================================//
244extern void VSPCheckSetup();
245
278extern void VSPRenew();
279
280
322extern void Update( bool update_managers = true );
323
332extern void VSPExit( int error_code );
333
347
348
372extern std::string GetVSPVersion();
373
406
439
472
498extern std::string GetVSPExePath();
499
500
531extern bool SetVSPAEROPath( const std::string & path );
532
559extern std::string GetVSPAEROPath();
560
592extern bool CheckForVSPAERO( const std::string & path );
593
594
595extern void RegisterCFDMeshAnalyses();
596
597
598//======================== File I/O ================================//
658extern void ReadVSPFile( const std::string & file_name );
659
720extern void WriteVSPFile( const std::string & file_name, int set = SET_ALL );
721
781extern void SetVSP3FileName( const std::string & file_name );
782
828extern std::string GetVSPFileName();
829
856extern void ClearVSPModel();
857
868extern void InsertVSPFile( const std::string & file_name, const std::string & parent_geom_id );
869
870
907extern std::string ExportFile( const std::string & file_name, int thick_set, int file_type, int subsFlag = 1, int thin_set = vsp::SET_NONE );
908
921extern std::string ImportFile( const std::string & file_name, int file_type, const std::string & parent );
922
923
954extern void SetBEMPropID( const string & prop_id );
955
956
957//======================== Design Files ================================//
958
967extern void ReadApplyDESFile( const std::string & file_name );
968
977extern void WriteDESFile( const std::string & file_name );
978
987extern void ReadApplyXDDMFile( const std::string & file_name );
988
997extern void WriteXDDMFile( const std::string & file_name );
998
1007extern int GetNumDesignVars();
1008
1019extern void AddDesignVar( const std::string & parm_id, int type );
1020
1029
1039extern std::string GetDesignVar( int index );
1040
1051extern int GetDesignVarType( int index );
1052
1053
1054//======================== Computations ================================//
1084extern void SetComputationFileName( int file_type, const std::string & file_name );
1085
1127extern std::string ComputeMassProps( int set, int num_slices, int idir );
1128
1168extern std::string ComputeCompGeom( int set, bool half_mesh, int file_export_types );
1169
1217extern std::string ComputePlaneSlice( int set, int num_slices, const vec3d & norm, bool auto_bnd,
1218
1219 double start_bnd = 0, double end_bnd = 0, bool measureduct = false );
1249extern void ComputeDegenGeom( int set, int file_export_types );
1250
1283extern void ComputeCFDMesh( int set, int degenset, int file_export_types );
1284
1306extern void SetCFDMeshVal( int type, double val );
1307
1342extern void SetCFDWakeFlag( const std::string & geom_id, bool flag );
1343
1373
1398extern void AddDefaultSources();
1399
1436extern void AddCFDSource( int type, const std::string & geom_id, int surf_index,
1437
1438 double l1, double r1, double u1, double w1,
1439 double l2 = 0, double r2 = 0, double u2 = 0, double w2 = 0 );
1440
1449extern string GetVSPAERORefWingID();
1450
1508extern string SetVSPAERORefWingID( const std::string & geom_id );
1509
1510
1511//======================== Analysis ================================//
1512
1536extern int GetNumAnalysis();
1537
1570extern std::vector<std::string> ListAnalysis();
1571
1609extern std::vector<std::string> GetAnalysisInputNames( const std::string & analysis );
1610
1635extern std::string GetAnalysisDoc( const std::string & analysis );
1636
1653extern std::string GetAnalysisInputDoc( const std::string & analysis, const std::string & name );
1654
1679extern std::string ExecAnalysis( const std::string & analysis );
1680
1681
1692extern int GetNumAnalysisInputData( const std::string & analysis, const std::string & name );
1693
1729extern int GetAnalysisInputType( const std::string & analysis, const std::string & name );
1730
1770extern const std::vector< int > & GetIntAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1771
1803extern const std::vector< double > & GetDoubleAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1804
1836extern const std::vector<std::string> & GetStringAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1837
1871extern const std::vector< vec3d > & GetVec3dAnalysisInput( const std::string & analysis, const std::string & name, int index = 0 );
1872
1873
1901extern void SetAnalysisInputDefaults( const std::string & analysis );
1902
1942extern void SetIntAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< int > & indata, int index = 0 );
1943
1985extern void SetDoubleAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< double > & indata, int index = 0 );
1986
2018extern void SetStringAnalysisInput( const std::string & analysis, const std::string & name, const std::vector<std::string> & indata, int index = 0 );
2019
2053extern void SetVec3dAnalysisInput( const std::string & analysis, const std::string & name, const std::vector< vec3d > & indata, int index = 0 );
2054
2055
2083extern void PrintAnalysisInputs( const std::string & analysis_name );
2084
2112extern void PrintAnalysisDocs( const std::string & analysis_name );
2113
2114
2115//======================== Results ================================//
2152extern std::vector<std::string> GetAllResultsNames();
2153
2188extern std::vector<std::string> GetAllDataNames( const std::string & results_id );
2189
2216extern int GetNumResults( const std::string & name );
2217
2258extern std::string GetResultsName(const std::string & results_id );
2259
2300extern std::string GetResultsSetDoc( const std::string & results_id );
2301
2302extern std::string GetResultsEntryDoc( const std::string & results_id, const std::string & data_name );
2303
2335extern std::string FindResultsID( const std::string & name, int index = 0 );
2336
2374extern std::string FindLatestResultsID( const std::string & name );
2375
2423extern int GetNumData( const std::string & results_id, const std::string & data_name );
2424
2466extern int GetResultsType( const std::string & results_id, const std::string & data_name );
2467
2516extern const std::vector< int > & GetIntResults( const std::string & id, const std::string & name, int index = 0 );
2517
2556extern const std::vector< double > & GetDoubleResults( const std::string & id, const std::string & name, int index = 0 );
2557
2569extern const std::vector< std::vector< double > > & GetDoubleMatResults( const std::string & id, const std:: string & name, int index = 0 );
2570
2607extern const std::vector<std::string> & GetStringResults( const std::string & id, const std::string & name, int index = 0 );
2608
2665extern const std::vector< vec3d > & GetVec3dResults( const std::string & id, const std::string & name, int index = 0 );
2666
2708extern std::string CreateGeomResults( const std::string & geom_id, const std::string & name );
2709
2748extern void DeleteAllResults();
2749
2789extern void DeleteResult( const std::string & id );
2790
2825extern void WriteResultsCSVFile( const std::string & id, const std::string & file_name );
2826
2862extern void PrintResults( const std::string &results_id );
2863
2899extern void PrintResultsDocs( const std::string &results_id );
2900
2935extern void WriteTestResults();
2936
2937//======================== GUI Functions ================================//
2938
2965extern void InitGUI();
2966
2994 extern void StartGUI();
2995
3032
3065
3099extern void StopGUI();
3100
3130extern void PopupMsg( const std::string &msg );
3131
3173extern void UpdateGUI();
3174
3208extern bool IsGUIBuild();
3209
3259extern void Lock( );
3260
3307extern void Unlock( );
3308
3342extern void ScreenGrab( const string & fname, int w, int h, bool transparentBG, bool autocrop = false );
3343
3363extern void SetViewAxis( bool vaxis );
3364
3384extern void SetShowBorders( bool brdr );
3385
3411extern void SetGeomDrawType(const string &geom_id, int type);
3412
3438extern void SetGeomDisplayType(const string &geom_id, int type);
3439
3461extern void SetBackground( double r, double g, double b );
3462
3482extern void SetGUIElementDisable( int e, bool state );
3483
3503extern void SetGUIScreenDisable( int s, bool state );
3504
3523extern void SetGeomScreenDisable( int s, bool state );
3524
3525
3526//======================== Geom Functions ================================//
3558extern std::vector<std::string> GetGeomTypes();
3559
3583extern std::string AddGeom( const std::string & type, const std::string & parent = std::string() );
3584
3621extern void UpdateGeom( const std::string & geom_id );
3622
3654extern void DeleteGeom( const std::string & geom_id );
3655
3689extern void DeleteGeomVec( const std::vector< std::string > & del_vec );
3690
3731extern void CutGeomToClipboard( const std::string & geom_id );
3732
3773extern void CopyGeomToClipboard( const std::string & geom_id );
3774
3815extern std::vector<std::string> PasteGeomClipboard( const std::string & parent = std::string() );
3816
3850extern std::vector<std::string> FindGeoms();
3851
3891extern std::vector<std::string> FindGeomsWithName( const std::string & name );
3892
3937extern std::string FindGeom( const std::string & name, int index );
3938
3977extern void SetGeomName( const std::string & geom_id, const std::string & name );
3978
4013extern std::string GetGeomName( const std::string & geom_id );
4014
4049extern std::vector<std::string> GetGeomParmIDs( const std::string & geom_id );
4050
4081extern std::string GetGeomTypeName( const std::string & geom_id );
4082
4115extern std::string GetParm( const std::string & geom_id, const std::string & name, const std::string & group );
4116
4151extern std::string GetGeomParent( const std::string& geom_id );
4152
4202extern std::vector< std::string > GetGeomChildren( const std::string& geom_id );
4203
4234extern int GetNumXSecSurfs( const std::string & geom_id );
4235
4275extern int GetNumMainSurfs( const std::string & geom_id );
4276
4316extern int GetTotalNumSurfs( const std::string& geom_id );
4317
4350extern int GetGeomVSPSurfType( const std::string& geom_id, int main_surf_ind = 0 );
4351
4384extern int GetGeomVSPSurfCfdType( const std::string& geom_id, int main_surf_ind = 0 );
4385
4426extern vec3d GetGeomBBoxMax( const std::string& geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true );
4427
4468extern vec3d GetGeomBBoxMin( const std::string& geom_id, int main_surf_ind = 0, bool ref_frame_is_absolute = true );
4469
4470
4471//======================== SubSurface Functions ================================//
4505extern std::string AddSubSurf( const std::string & geom_id, int type, int surfindex = 0 );
4506
4548extern std::string GetSubSurf( const std::string & geom_id, int index );
4549
4591extern std::vector<std::string> GetSubSurf( const std::string & geom_id, const std::string & name );
4592
4639extern void DeleteSubSurf( const std::string & geom_id, const std::string & sub_id );
4640
4686extern void DeleteSubSurf( const std::string & sub_id );
4687
4721extern void SetSubSurfName(const std::string & geom_id, const std::string & sub_id, const std::string & name);
4722
4755extern void SetSubSurfName( const std::string & sub_id, const std::string & name );
4756
4794extern std::string GetSubSurfName( const std::string & geom_id, const std::string & sub_id );
4795
4832extern std::string GetSubSurfName( const std::string & sub_id );
4833
4872extern int GetSubSurfIndex( const std::string & sub_id );
4873
4937extern std::vector<std::string> GetSubSurfIDVec( const std::string & geom_id );
4938
4947extern std::vector<std::string> GetAllSubSurfIDs();
4948
4987extern int GetNumSubSurf( const std::string & geom_id );
4988
5053extern int GetSubSurfType( const std::string & sub_id );
5054
5100extern std::vector<std::string> GetSubSurfParmIDs( const std::string & sub_id );
5101
5102
5134extern int AddFeaStruct( const std::string & geom_id, bool init_skin = true, int surfindex = 0 );
5135
5172extern void SetFeaMeshStructIndex( int struct_index );
5173
5210extern void DeleteFeaStruct( const std::string & geom_id, int fea_struct_ind );
5211
5245extern std::string GetFeaStructID( const std::string & geom_id, int fea_struct_ind );
5246
5291extern int GetFeaStructIndex( const std::string & struct_id );
5292
5331extern std::string GetFeaStructParentGeomID( const std::string & struct_id );
5332
5377extern std::string GetFeaStructName( const std::string & geom_id, int fea_struct_ind );
5378
5427extern void SetFeaStructName( const std::string & geom_id, int fea_struct_ind, const std::string & name );
5428
5465extern std::vector< std::string > GetFeaStructIDVec();
5466
5506extern void SetFeaPartName( const std::string & part_id, const std::string & name );
5507
5553extern std::string AddFeaPart( const std::string & geom_id, int fea_struct_ind, int type );
5554
5602extern void DeleteFeaPart( const std::string & geom_id, int fea_struct_ind, const std::string & part_id );
5603
5656extern std::string GetFeaPartID( const std::string & fea_struct_id, int fea_part_index );
5657
5708extern std::string GetFeaPartName( const std::string & part_id );
5709
5754extern int GetFeaPartType( const std::string & part_id );
5755
5801extern std::vector< std::string > GetFeaPartIDVec( const std::string & fea_struct_id );
5802
5848extern std::vector< std::string > GetFeaSubSurfIDVec( const std::string & fea_struct_id );
5849
5919extern void SetFeaPartPerpendicularSparID( const std::string& part_id, const std::string& perpendicular_spar_id );
5920
5989extern std::string GetFeaPartPerpendicularSparID( const std::string& part_id );
5990
6036extern std::string AddFeaSubSurf( const std::string & geom_id, int fea_struct_ind, int type );
6037
6085extern void DeleteFeaSubSurf( const std::string & geom_id, int fea_struct_ind, const std::string & ss_id );
6086
6142extern int GetFeaSubSurfIndex( const string & ss_id );
6143
6182extern int NumFeaStructures();
6183
6234extern int NumFeaParts( const std::string & fea_struct_id );
6235
6285extern int NumFeaSubSurfs( const std::string & fea_struct_id );
6286
6312extern std::string AddFeaMaterial();
6313
6342extern std::string AddFeaProperty( int property_type = 0 );
6343
6386extern void SetFeaMeshVal( const std::string & geom_id, int fea_struct_ind, int type, double val );
6387
6438extern void SetFeaMeshFileName( const std::string & geom_id, int fea_struct_ind, int file_type, const string & file_name );
6439
6491extern void ComputeFeaMesh( const std::string & geom_id, int fea_struct_ind, int file_type );
6492
6543extern void ComputeFeaMesh( const std::string & struct_id, int file_type );
6544
6545
6585extern void CutXSec( const std::string & geom_id, int index );
6586
6622extern void CopyXSec( const std::string & geom_id, int index );
6623
6659extern void PasteXSec( const std::string & geom_id, int index );
6660
6689extern void InsertXSec( const std::string & geom_id, int index, int type );
6690
6691
6692//======================== Wing Section Functions ===================//
6741extern void SetDriverGroup( const std::string & geom_id, int section_index, int driver_0, int driver_1 = -1, int driver_2 = -1 );
6742
6743
6744//======================== XSecSurf ================================//
6774extern std::string GetXSecSurf( const std::string & geom_id, int index );
6775
6827extern int GetNumXSec( const std::string & xsec_surf_id );
6828
6864extern std::string GetXSec( const std::string & xsec_surf_id, int xsec_index );
6865
6916extern void ChangeXSecShape( const std::string & xsec_surf_id, int xsec_index, int type );
6917
6927extern void SetXSecSurfGlobalXForm( const std::string & xsec_surf_id, const Matrix4d & mat );
6928
6938extern Matrix4d GetXSecSurfGlobalXForm( const std::string & xsec_surf_id );
6939
6940
6941//======================== XSec ================================//
6983extern int GetXSecShape( const std::string& xsec_id );
6984
7024extern double GetXSecWidth( const std::string& xsec_id );
7025
7065extern double GetXSecHeight( const std::string& xsec_id );
7066
7108extern void SetXSecWidthHeight( const std::string& xsec_id, double w, double h );
7109
7149extern void SetXSecWidth( const std::string& xsec_id, double w );
7150
7190extern void SetXSecHeight( const std::string& xsec_id, double h );
7191
7230extern std::vector<std::string> GetXSecParmIDs( const std::string& xsec_id );
7231
7275extern std::string GetXSecParm( const std::string& xsec_id, const std::string& name );
7276
7317extern std::vector<vec3d> ReadFileXSec( const std::string& xsec_id, const std::string& file_name );
7318
7372extern void SetXSecPnts( const std::string& xsec_id, std::vector< vec3d > & pnt_vec );
7373
7416extern vec3d ComputeXSecPnt( const std::string& xsec_id, double fract );
7417
7459extern vec3d ComputeXSecTan( const std::string& xsec_id, double fract );
7460
7502extern void ResetXSecSkinParms( const std::string& xsec_id );
7503
7545extern void SetXSecContinuity( const std::string& xsec_id, int cx );
7546
7597extern void SetXSecTanAngles( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
7598
7649extern void SetXSecTanSlews( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
7650
7703extern void SetXSecTanStrengths( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
7704
7757extern void SetXSecCurvatures( const std::string& xsec_id, int side, double top, double right, double bottom, double left );
7758
7797extern void ReadFileAirfoil( const std::string& xsec_id, const std::string& file_name );
7798
7854extern void SetAirfoilUpperPnts( const std::string& xsec_id, const std::vector< vec3d > & up_pnt_vec );
7855
7911extern void SetAirfoilLowerPnts( const std::string& xsec_id, const std::vector< vec3d > & low_pnt_vec );
7912
7977extern void SetAirfoilPnts( const std::string& xsec_id, const std::vector< vec3d > & up_pnt_vec, const std::vector< vec3d > & low_pnt_vec );
7978
8027extern std::vector<vec3d> GetHersheyBarLiftDist( const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag = false );
8028
8077extern std::vector<vec3d> GetHersheyBarDragDist( const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag = false );
8078
8131extern std::vector<vec3d> GetVKTAirfoilPnts( const int &npts, const double &alpha, const double &epsilon, const double &kappa, const double &tau );
8132
8186extern std::vector<double> GetVKTAirfoilCpDist( const double &alpha, const double &epsilon, const double &kappa, const double &tau, std::vector<vec3d> xyz_data );
8187
8202extern std::vector<vec3d> GetEllipsoidSurfPnts( const vec3d &center, const vec3d &abc_rad, int u_npts = 20, int w_npts = 20 );
8203
8213extern std::vector<vec3d> GetFeatureLinePnts( const string& geom_id );
8214
8297extern std::vector<double> GetEllipsoidCpDist( const std::vector<vec3d> &surf_pnt_vec, const vec3d &abc_rad, const vec3d &V_inf );
8298
8299extern double IntegrateEllipsoidFlow( const vec3d &abc_rad, const int &abc_index );
8300
8344extern std::vector<vec3d> GetAirfoilUpperPnts( const std::string& xsec_id );
8345
8389extern std::vector<vec3d> GetAirfoilLowerPnts( const std::string& xsec_id );
8390
8401extern std::vector<double> GetUpperCSTCoefs( const std::string& xsec_id );
8402
8413extern std::vector<double> GetLowerCSTCoefs( const std::string& xsec_id );
8414
8425extern int GetUpperCSTDegree( const std::string& xsec_id );
8426
8437extern int GetLowerCSTDegree( const std::string& xsec_id );
8438
8450extern void SetUpperCST( const std::string& xsec_id, int deg, const std::vector<double> &coefs );
8451
8463extern void SetLowerCST( const std::string& xsec_id, int deg, const std::vector<double> &coefs );
8464
8474extern void PromoteCSTUpper( const std::string& xsec_id );
8475
8485extern void PromoteCSTLower( const std::string& xsec_id );
8486
8496extern void DemoteCSTUpper( const std::string& xsec_id );
8497
8507extern void DemoteCSTLower( const std::string& xsec_id );
8508
8519extern void FitAfCST( const std::string & xsec_surf_id, int xsec_index, int deg );
8520
8521
8522//======================== BOR Functions ======================//
8554extern void ChangeBORXSecShape( const string & bor_id, int type );
8555
8586extern int GetBORXSecShape( const string & bor_id );
8587
8619extern std::vector<vec3d> ReadBORFileXSec( const std::string& bor_id, const std::string& file_name );
8620
8665extern void SetBORXSecPnts( const std::string& bor_id, std::vector< vec3d > & pnt_vec );
8666
8700extern vec3d ComputeBORXSecPnt( const std::string& bor_id, double fract );
8701
8733extern vec3d ComputeBORXSecTan( const std::string& bor_id, double fract );
8734
8765extern void ReadBORFileAirfoil( const std::string& bor_id, const std::string& file_name );
8766
8814extern void SetBORAirfoilUpperPnts( const std::string& bor_id, const std::vector< vec3d > & up_pnt_vec );
8815
8863extern void SetBORAirfoilLowerPnts( const std::string& bor_id, const std::vector< vec3d > & low_pnt_vec );
8864
8921extern void SetBORAirfoilPnts( const std::string& bor_id, const std::vector< vec3d > & up_pnt_vec, const std::vector< vec3d > & low_pnt_vec );
8922
8958extern std::vector<vec3d> GetBORAirfoilUpperPnts( const std::string& bor_id );
8959
8995extern std::vector<vec3d> GetBORAirfoilLowerPnts( const std::string& bor_id );
8996
9007extern std::vector<double> GetBORUpperCSTCoefs( const std::string& bor_id );
9008
9019extern std::vector<double> GetBORLowerCSTCoefs( const std::string& bor_id );
9020
9031extern int GetBORUpperCSTDegree( const std::string& bor_id );
9032
9043extern int GetBORLowerCSTDegree( const std::string& bor_id );
9044
9056extern void SetBORUpperCST( const std::string& bor_id, int deg, const std::vector<double> &coefs );
9057
9069extern void SetBORLowerCST( const std::string& bor_id, int deg, const std::vector<double> &coefs );
9070
9080extern void PromoteBORCSTUpper( const std::string& bor_id );
9081
9091extern void PromoteBORCSTLower( const std::string& bor_id );
9092
9102extern void DemoteBORCSTUpper( const std::string& bor_id );
9103
9113extern void DemoteBORCSTLower( const std::string& bor_id );
9114
9124extern void FitBORAfCST( const std::string & bor_id, int deg );
9125
9126
9127//======================== FoilSurf Functions ======================//
9162extern void WriteBezierAirfoil( const std::string & file_name, const std::string & geom_id, const double &foilsurf_u );
9163
9198extern void WriteSeligAirfoil( const std::string & file_name, const std::string & geom_id, const double &foilsurf_u );
9199
9210extern std::vector < vec3d > GetAirfoilCoordinates( const std::string & geom_id, const double &foilsurf_u );
9211
9212
9213//======================== Edit Curve XSec Functions ======================//
9262extern void EditXSecInitShape( const std::string & xsec_id );
9263
9310extern void EditXSecConvertTo( const std::string & xsec_id, const int & newtype );
9311
9368extern std::vector < double > GetEditXSecUVec( const std::string& xsec_id );
9369
9419extern std::vector < vec3d > GetEditXSecCtrlVec( const std::string & xsec_id, const bool non_dimensional = true );
9420
9528extern void SetEditXSecPnts( const std::string & xsec_id, std::vector < double > u_vec, std::vector < vec3d > control_pts, std::vector < double > r_vec );
9529
9596extern void EditXSecDelPnt( const std::string & xsec_id, const int & indx );
9597
9663extern int EditXSecSplit01( const std::string & xsec_id, const double & u );
9664
9745extern void MoveEditXSecPnt( const std::string & xsec_id, const int & indx, const vec3d & new_pnt );
9746
9797extern void ConvertXSecToEdit( const std::string & geom_id, const int & indx = 0 );
9798
9855extern std::vector < bool > GetEditXSecFixedUVec( const std::string& xsec_id );
9856
9913extern void SetEditXSecFixedUVec( const std::string& xsec_id, std::vector < bool > fixed_u_vec );
9914
9971extern void ReparameterizeEditXSec( const std::string & xsec_id );
9972
9973
9974//======================== Sets ================================//
9995extern int GetNumSets();
9996
10024extern void SetSetName( int index, const std::string& name );
10025
10053extern std::string GetSetName( int index );
10054
10088extern std::vector<std::string> GetGeomSetAtIndex( int index );
10089
10122extern std::vector<std::string> GetGeomSet( const std::string & name );
10123
10150extern int GetSetIndex( const std::string & name );
10151
10185extern bool GetSetFlag( const std::string & geom_id, int set_index );
10186
10220extern void SetSetFlag( const std::string & geom_id, int set_index, bool flag );
10221
10266extern void CopyPasteSet( int copyIndex, int pasteIndex );
10267
10268
10269//======================== Group Modifications ================================//
10302extern void ScaleSet( int set_index, double scale );
10303
10338extern void RotateSet( int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg );
10339
10372extern void TranslateSet( int set_index, const vec3d &translation_vec );
10373
10412extern 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 );
10413
10414
10415//======================== Parm Functions ================================//
10446extern bool ValidParm( const std::string & id );
10447
10496extern double SetParmVal( const std::string & parm_id, double val );
10497
10548extern double SetParmVal( const std::string & geom_id, const std::string & name, const std::string & group, double val );
10549
10586extern double SetParmValLimits( const std::string & parm_id, double val, double lower_limit, double upper_limit );
10587
10620extern double SetParmValUpdate( const std::string & parm_id, double val );
10621
10656extern double SetParmValUpdate( const std::string & geom_id, const std::string & parm_name, const std::string & parm_group_name, double val );
10657
10704extern double GetParmVal( const std::string & parm_id );
10705
10754extern double GetParmVal( const std::string & geom_id, const std::string & name, const std::string & group );
10755
10786extern int GetIntParmVal( const std::string & parm_id );
10787
10818extern bool GetBoolParmVal( const std::string & parm_id );
10819
10871extern void SetParmUpperLimit( const std::string & parm_id, double val );
10872
10903extern double GetParmUpperLimit( const std::string & parm_id );
10904
10956extern void SetParmLowerLimit( const std::string & parm_id, double val );
10957
10988extern double GetParmLowerLimit( const std::string & parm_id );
10989
11033extern int GetParmType( const std::string & parm_id );
11034
11092extern std::string GetParmName( const std::string & parm_id );
11093
11137extern std::string GetParmGroupName( const std::string & parm_id );
11138
11182extern std::string GetParmDisplayGroupName( const std::string & parm_id );
11183
11230extern std::string GetParmContainer( const std::string & parm_id );
11231
11264extern void SetParmDescript( const std::string & parm_id, const std::string & desc );
11265
11300extern std::string GetParmDescript( const std::string & parm_id );
11301
11336extern std::string FindParm( const std::string & parm_container_id, const std::string& parm_name, const std::string& group_name );
11337
11338
11339//======================== Parm Container Functions ======================//
11340
11377extern std::vector<std::string> FindContainers();
11378
11403extern std::vector<std::string> FindContainersWithName( const std::string & name );
11404
11429extern std::string FindContainer( const std::string & name, int index );
11430
11455extern std::string GetContainerName( const std::string & parm_container_id );
11456
11496extern std::vector<std::string> FindContainerGroupNames( const std::string & parm_container_id );
11497
11555extern std::vector<std::string> FindContainerParmIDs( const std::string & parm_container_id );
11556
11578extern std::string GetVehicleID();
11579
11580
11581//======================== User Parm Functions ======================//
11603extern int GetNumUserParms();
11604
11627
11664extern std::vector < std::string > GetAllUserParms();
11665
11685extern std::string GetUserParmContainer();
11686
11718extern string AddUserParm(int type, const string & name, const string & group );
11719
11750extern void DeleteUserParm( const std::string & id );
11751
11770extern void DeleteAllUserParm();
11771
11772
11773//======================== Snap To Functions ======================//
11815extern double ComputeMinClearanceDistance( const std::string & geom_id, int set = SET_ALL );
11816
11860 // TODO: Validate inc_flag description
11861
11862extern double SnapParm( const std::string & parm_id, double target_min_dist, bool inc_flag, int set = SET_ALL );
11863
11864
11865//======================== Variable Preset Functions ======================//
11895extern void AddVarPresetGroup( const std::string &group_name );
11896
11930extern void AddVarPresetSetting( const std::string &setting_name );
11931
11969extern void AddVarPresetParm( const std::string &parm_id );
11970
12009extern void AddVarPresetParm( const std::string &parm_id, const std::string &group_name );
12010
12053extern void EditVarPresetParm( const std::string &parm_id, double parm_val );
12054
12099extern void EditVarPresetParm( const std::string &parm_id, double parm_val, const std::string &group_name, const std::string &setting_name );
12100
12142extern void DeleteVarPresetParm( const std::string &parm_id );
12143
12186extern void DeleteVarPresetParm( const std::string &parm_id, const std::string &group_name );
12187
12234extern void SwitchVarPreset( const std::string &group_name, const std::string &setting_name );
12235
12269extern bool DeleteVarPresetSet( const std::string &group_name, const std::string &setting_name );
12270
12324extern std::string GetCurrentGroupName();
12325
12379extern std::string GetCurrentSettingName();
12380
12410extern std::vector< std::string > GetVarPresetGroupNames();
12411
12446extern std::vector< std::string > GetVarPresetSettingNamesWName( const std::string &group_name );
12447
12504extern std::vector< std::string > GetVarPresetSettingNamesWIndex( int group_index );
12505
12555extern std::vector< double > GetVarPresetParmVals();
12556
12614extern std::vector< double > GetVarPresetParmValsWNames( const std::string &group_name, const std::string &setting_name );
12615
12661extern std::vector< std::string > GetVarPresetParmIDs();
12662
12715extern std::vector< std::string > GetVarPresetParmIDsWName( const std::string &group_name );
12716
12717
12718//======================== Parametric Curve Functions ======================//
12732extern void SetPCurve( const std::string & geom_id, const int & pcurveid, const std::vector < double > & tvec,
12733
12734 const std::vector < double > & valvec, const int & newtype );
12746extern void PCurveConvertTo( const std::string & geom_id, const int & pcurveid, const int & newtype );
12747
12759extern int PCurveGetType( const std::string & geom_id, const int & pcurveid );
12760
12771extern std::vector < double > PCurveGetTVec( const std::string & geom_id, const int & pcurveid );
12772
12783extern std::vector < double > PCurveGetValVec( const std::string & geom_id, const int & pcurveid );
12784
12795extern void PCurveDeletePt( const std::string & geom_id, const int & pcurveid, const int & indx );
12796
12808extern int PCurveSplit( const std::string & geom_id, const int & pcurveid, const double & tsplit );
12809
12837extern void ApproximateAllPropellerPCurves( const std::string & geom_id );
12838
12868extern void ResetPropellerThicknessCurve( const std::string & geom_id );
12869
12870
12871//======================== VSPAERO Functions ======================//
12964
13003
13035extern void AddAllToVSPAEROControlSurfaceGroup( int CSGroupIndex );
13036
13072extern void RemoveAllFromVSPAEROControlSurfaceGroup( int CSGroupIndex );
13073
13125extern std::vector < std::string > GetActiveCSNameVec( int CSGroupIndex );
13126
13171extern std::vector < std::string > GetCompleteCSNameVec();
13172
13214extern std::vector < std::string > GetAvailableCSNameVec( int CSGroupIndex );
13215
13256extern void SetVSPAEROControlGroupName(const string & name, int CSGroupIndex);
13257
13297extern std::string GetVSPAEROControlGroupName( int CSGroupIndex );
13298
13353extern void AddSelectedToCSGroup(vector <int> selected, int CSGroupIndex);
13354
13418extern void RemoveSelectedFromCSGroup(vector <int> selected, int CSGroupIndex);
13419
13476
13477
13478//================ VSPAERO Actuator Disk and Unsteady Functions ==============//
13527extern std::string FindActuatorDisk( int disk_index );
13528
13572
13619extern std::string FindUnsteadyGroup( int group_index );
13620
13656extern std::string GetUnsteadyGroupName( int group_index );
13657
13701extern std::vector < std::string > GetUnsteadyGroupCompIDs( int group_index );
13702
13746extern std::vector < int > GetUnsteadyGroupSurfIndexes( int group_index );
13747
13800
13854
13855
13856//======================== Parasite Drag Tool Functions ======================//
13883extern void AddExcrescence(const std::string & excresName, const int & excresType, const double & excresVal);
13884
13916extern void DeleteExcrescence(const int & index);
13917
13926
13953extern void WriteAtmosphereCSVFile( const std::string & file_name, const int &atmos_type );
13954
13994extern void CalcAtmosphere( const double & alt, const double & delta_temp, const int & atmos_type,
13995
13996 double & temp, double & pres, double & pres_ratio, double & rho_ratio );
14018extern void WriteBodyFFCSVFile( const std::string & file_name );
14019
14041extern void WriteWingFFCSVFile( const std::string & file_name );
14042
14062 // TODO: Improve description
14063
14064extern void WriteCfEqnCSVFile( const std::string & file_name );
14065
14085 // TODO: Improve description
14086
14087extern void WritePartialCfMethodCSVFile( const std::string & file_name );
14088
14089
14090//======================== Surface Query Functions ======================//
14134extern vec3d CompPnt01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
14135
14179extern vec3d CompNorm01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
14180
14224extern vec3d CompTanU01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
14225
14269extern vec3d CompTanW01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w);
14270
14321extern void CompCurvature01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w,
14322 double &k1_out, double &k2_out, double &ka_out, double &kg_out);
14323
14387extern double ProjPnt01(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &u_out, double &w_out);
14388
14459extern double ProjPnt01I(const std::string &geom_id, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out);
14460
14531extern double ProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out);
14532
14533
14595extern double AxisProjPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, double &u_out, double &w_out);
14596
14660extern double AxisProjPnt01I(const std::string &geom_id, const int &iaxis, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out);
14661
14735extern double AxisProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out);
14736
14799extern bool InsideSurf( const std::string &geom_id, const int &surf_indx, const vec3d &pt );
14800
14801
14848extern vec3d CompPntRST( const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t );
14849
14906extern double FindRST( const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &r_out, double &s_out, double &t_out );
14907
14976extern double FindRSTGuess( const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &r0, const double &s0, const double &t0, double &r_out, double &s_out, double &t_out );
14977
14978
15026extern void ConvertRSTtoLMN( const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t, double &l_out, double &m_out, double &n_out );
15027
15067extern void ConvertRtoL( const std::string &geom_id, const int &surf_indx, const double &r, double &l_out );
15068
15116extern void ConvertLMNtoRST( const std::string &geom_id, const int &surf_indx, const double &l, const double &m, const double &n, double &r_out, double &s_out, double &t_out );
15155extern void ConvertLtoR( const std::string &geom_id, const int &surf_indx, const double &l, double &r_out );
15156
15195extern void ConvertUtoEta( const std::string &geom_id, const double &u, double &eta_out );
15196
15235extern void ConvertEtatoU( const std::string &geom_id, const double &eta, double &u_out );
15236
15237
15292extern std::vector < vec3d > CompVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &u_in_vec, const std::vector < double > &w_in_vec);
15293
15348extern std::vector < vec3d > CompVecNorm01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &us, const std::vector < double > &ws);
15349
15411extern void CompVecCurvature01(const std::string &geom_id, const int &surf_indx, const std::vector < double > &us, const std::vector < double > &ws, std::vector < double > &k1_out_vec, std::vector < double > &k2_out_vec, std::vector < double > &ka_out_vec, std::vector < double > &kg_out_vec);
15412
15489extern void ProjVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
15490
15589extern void ProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, const std::vector < double > &u0s, const std::vector < double > &w0s, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
15590
15591
15693extern void AxisProjVecPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector < vec3d > &pts, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
15694
15807extern void AxisProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector < vec3d > &pts, const std::vector < double > &u0s, const std::vector < double > &w0s, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec, std::vector < double > &d_out_vec );
15808
15882extern std::vector < bool > VecInsideSurf( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts );
15883
15884
15946extern std::vector < vec3d > CompVecPntRST( const std::string &geom_id, const int &surf_indx, const std::vector < double > &r_in_vec, const std::vector < double > &s_in_vec, const std::vector < double > &t_in_vec );
15947
16020extern void FindRSTVec( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec, std::vector < double > &d_out_vec );
16021
16105extern void FindRSTVecGuess( const std::string &geom_id, const int &surf_indx, const std::vector < vec3d > &pts, const std::vector < double > &r0s, const std::vector < double > &s0s, const std::vector < double > &t0s, std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec, std::vector < double > &d_out_vec );
16106
16107
16175extern void ConvertRSTtoLMNVec( const std::string &geom_id, const int &surf_indx, const std::vector < double > &r_vec, const std::vector < double > &s_vec, const std::vector < double > &t_vec,
16176 std::vector < double > &l_out_vec, std::vector < double > &m_out_vec, std::vector < double > &n_out_vec );
16177
16244extern void ConvertLMNtoRSTVec( const std::string &geom_id, const int &surf_indx, const std::vector < double > &l_vec, const std::vector < double > &m_vec, const std::vector < double > &n_vec,
16245 std::vector < double > &r_out_vec, std::vector < double > &s_out_vec, std::vector < double > &t_out_vec );
16246
16281extern void GetUWTess01(const std::string &geom_id, const int &surf_indx, std::vector < double > &u_out_vec, std::vector < double > &w_out_vec);
16282
16283
16284//======================= Measure Functions ============================//
16333extern string AddRuler( const string & startgeomid, int startsurfindx, double startu, double startw,
16334 const string & endgeomid, int endsurfindx, double endu, double endw, const string & name );
16391extern std::vector < string > GetAllRulers();
16392
16440extern void DelRuler( const string &id );
16441
16484extern void DeleteAllRulers();
16485
16486
16523extern string AddProbe( const string & geomid, int surfindx, double u, double w, const string & name );
16524
16564extern std::vector < string > GetAllProbes();
16565
16607extern void DelProbe( const string &id );
16608
16649extern void DeleteAllProbes();
16650
16651
16652//======================= Advanced Link Functions ============================//
16653
16682extern std::vector< std::string > GetAdvLinkNames();
16683
16731extern int GetLinkIndex( const string & name );
16732
16797extern void DelAdvLink( int index );
16798
16862extern void DelAllAdvLinks();
16863
16909extern void AddAdvLink( const string & name );
16910
16958extern void AddAdvLinkInput( int index, const string & parm_id, const string & var_name );
16959
17007extern void AddAdvLinkOutput( int index, const string & parm_id, const string & var_name );
17008
17067extern void DelAdvLinkInput( int index, const string & var_name );
17068
17127extern void DelAdvLinkOutput( int index, const string & var_name );
17128
17188extern std::vector< std::string > GetAdvLinkInputNames( int index );
17189
17249extern std::vector< std::string > GetAdvLinkInputParms( int index );
17250
17310extern std::vector< std::string > GetAdvLinkOutputNames( int index );
17311
17371extern std::vector< std::string > GetAdvLinkOutputParms( int index );
17372
17437extern bool ValidateAdvLinkParms( int index );
17438
17485extern void SetAdvLinkCode( int index, const string & code );
17486
17541extern std::string GetAdvLinkCode( int index );
17542
17600extern void SearchReplaceAdvLinkCode( int index, const string & from, const string & to );
17601
17662extern bool BuildAdvLinkScript( int index );
17663
17664
17665} // End vsp namespace
17666
17667
17668#endif // !defined(VSPAPI__INCLUDED_)
Definition Vec3d.h:235
bool CheckForVSPAERO(const std::string &path)
int GetVSPVersionChange()
std::string GetVSPVersion()
int GetVSPVersionMinor()
bool SetVSPAEROPath(const std::string &path)
std::string GetVSPExePath()
std::string GetVSPAEROPath()
int GetVSPVersionMajor()
void VSPRenew()
void VSPCheckSetup()
std::vector< std::string > GetAnalysisInputNames(const std::string &analysis)
const std::vector< int > & GetIntAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
void SetIntAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< int > &indata, int index=0)
void PrintAnalysisDocs(const std::string &analysis_name)
std::string ExecAnalysis(const std::string &analysis)
int GetNumAnalysis()
std::vector< std::string > ListAnalysis()
void SetVec3dAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< vec3d > &indata, int index=0)
void SetStringAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< std::string > &indata, int index=0)
void PrintAnalysisInputs(const std::string &analysis_name)
int GetAnalysisInputType(const std::string &analysis, const std::string &name)
void SetAnalysisInputDefaults(const std::string &analysis)
const std::vector< double > & GetDoubleAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
std::string GetAnalysisDoc(const std::string &analysis)
const std::vector< vec3d > & GetVec3dAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
void SetDoubleAnalysisInput(const std::string &analysis, const std::string &name, const std::vector< double > &indata, int index=0)
std::string GetAnalysisInputDoc(const std::string &analysis, const std::string &name)
const std::vector< std::string > & GetStringAnalysisInput(const std::string &analysis, const std::string &name, int index=0)
int GetNumAnalysisInputData(const std::string &analysis, const std::string &name)
void SetBORAirfoilUpperPnts(const std::string &bor_id, const std::vector< vec3d > &up_pnt_vec)
void ReadBORFileAirfoil(const std::string &bor_id, const std::string &file_name)
void FitBORAfCST(const std::string &bor_id, int deg)
std::vector< double > GetBORLowerCSTCoefs(const std::string &bor_id)
vec3d ComputeBORXSecPnt(const std::string &bor_id, double fract)
std::vector< vec3d > GetBORAirfoilLowerPnts(const std::string &bor_id)
void SetBORXSecPnts(const std::string &bor_id, std::vector< vec3d > &pnt_vec)
void PromoteBORCSTUpper(const std::string &bor_id)
void SetBORUpperCST(const std::string &bor_id, int deg, const std::vector< double > &coefs)
void SetBORLowerCST(const std::string &bor_id, int deg, const std::vector< double > &coefs)
void ChangeBORXSecShape(const string &bor_id, int type)
vec3d ComputeBORXSecTan(const std::string &bor_id, double fract)
int GetBORUpperCSTDegree(const std::string &bor_id)
void DemoteBORCSTLower(const std::string &bor_id)
void PromoteBORCSTLower(const std::string &bor_id)
int GetBORXSecShape(const string &bor_id)
std::vector< double > GetBORUpperCSTCoefs(const std::string &bor_id)
std::vector< vec3d > ReadBORFileXSec(const std::string &bor_id, const std::string &file_name)
std::vector< vec3d > GetBORAirfoilUpperPnts(const std::string &bor_id)
void DemoteBORCSTUpper(const std::string &bor_id)
int GetBORLowerCSTDegree(const std::string &bor_id)
void SetBORAirfoilPnts(const std::string &bor_id, const std::vector< vec3d > &up_pnt_vec, const std::vector< vec3d > &low_pnt_vec)
void SetBORAirfoilLowerPnts(const std::string &bor_id, const std::vector< vec3d > &low_pnt_vec)
void AddCFDSource(int type, const std::string &geom_id, int surf_index, double l1, double r1, double u1, double w1, double l2=0, double r2=0, double u2=0, double w2=0)
void DeleteAllCFDSources()
void ComputeCFDMesh(int set, int degenset, int file_export_types)
void SetCFDWakeFlag(const std::string &geom_id, bool flag)
void AddDefaultSources()
void SetCFDMeshVal(int type, double val)
void SetComputationFileName(int file_type, const std::string &file_name)
void SetVSPAEROControlGroupName(const string &name, int CSGroupIndex)
std::vector< std::string > GetActiveCSNameVec(int CSGroupIndex)
void AddAllToVSPAEROControlSurfaceGroup(int CSGroupIndex)
std::vector< std::string > GetAvailableCSNameVec(int CSGroupIndex)
int CreateVSPAEROControlSurfaceGroup()
int GetNumControlSurfaceGroups()
void AddSelectedToCSGroup(vector< int > selected, int CSGroupIndex)
std::string GetVSPAEROControlGroupName(int CSGroupIndex)
std::vector< std::string > GetCompleteCSNameVec()
void RemoveAllFromVSPAEROControlSurfaceGroup(int CSGroupIndex)
void RemoveSelectedFromCSGroup(vector< int > selected, int CSGroupIndex)
void AutoGroupVSPAEROControlSurfaces()
std::string ComputeCompGeom(int set, bool half_mesh, int file_export_types)
std::string ComputeMassProps(int set, int num_slices, int idir)
std::string ComputePlaneSlice(int set, int num_slices, const vec3d &norm, bool auto_bnd, double start_bnd=0, double end_bnd=0, bool measureduct=false)
void ComputeDegenGeom(int set, int file_export_types)
void WriteDESFile(const std::string &file_name)
int GetNumDesignVars()
void AddDesignVar(const std::string &parm_id, int type)
void DeleteAllDesignVars()
void ReadApplyXDDMFile(const std::string &file_name)
void ReadApplyDESFile(const std::string &file_name)
void WriteXDDMFile(const std::string &file_name)
std::string GetDesignVar(int index)
int GetDesignVarType(int index)
std::vector< vec3d > GetEditXSecCtrlVec(const std::string &xsec_id, const bool non_dimensional=true)
void MoveEditXSecPnt(const std::string &xsec_id, const int &indx, const vec3d &new_pnt)
void EditXSecDelPnt(const std::string &xsec_id, const int &indx)
void EditXSecConvertTo(const std::string &xsec_id, const int &newtype)
std::vector< bool > GetEditXSecFixedUVec(const std::string &xsec_id)
void ConvertXSecToEdit(const std::string &geom_id, const int &indx=0)
void SetEditXSecFixedUVec(const std::string &xsec_id, std::vector< bool > fixed_u_vec)
int EditXSecSplit01(const std::string &xsec_id, const double &u)
std::vector< double > GetEditXSecUVec(const std::string &xsec_id)
void EditXSecInitShape(const std::string &xsec_id)
void ReparameterizeEditXSec(const std::string &xsec_id)
void SetEditXSecPnts(const std::string &xsec_id, std::vector< double > u_vec, std::vector< vec3d > control_pts, std::vector< double > r_vec)
@ SET_NONE
@ SET_ALL
std::string GetFeaPartID(const std::string &fea_struct_id, int fea_part_index)
std::string GetFeaStructName(const std::string &geom_id, int fea_struct_ind)
std::vector< std::string > GetFeaSubSurfIDVec(const std::string &fea_struct_id)
void DeleteFeaPart(const std::string &geom_id, int fea_struct_ind, const std::string &part_id)
std::vector< std::string > GetFeaStructIDVec()
void DeleteFeaSubSurf(const std::string &geom_id, int fea_struct_ind, const std::string &ss_id)
int GetFeaSubSurfIndex(const string &ss_id)
int GetFeaPartType(const std::string &part_id)
int NumFeaParts(const std::string &fea_struct_id)
int NumFeaSubSurfs(const std::string &fea_struct_id)
void SetFeaMeshStructIndex(int struct_index)
void SetFeaMeshVal(const std::string &geom_id, int fea_struct_ind, int type, double val)
void DeleteFeaStruct(const std::string &geom_id, int fea_struct_ind)
int GetFeaStructIndex(const std::string &struct_id)
std::vector< std::string > GetFeaPartIDVec(const std::string &fea_struct_id)
std::string GetFeaStructParentGeomID(const std::string &struct_id)
void SetFeaPartName(const std::string &part_id, const std::string &name)
void SetFeaStructName(const std::string &geom_id, int fea_struct_ind, const std::string &name)
void ComputeFeaMesh(const std::string &geom_id, int fea_struct_ind, int file_type)
std::string GetFeaPartName(const std::string &part_id)
std::string GetFeaPartPerpendicularSparID(const std::string &part_id)
std::string AddFeaSubSurf(const std::string &geom_id, int fea_struct_ind, int type)
int NumFeaStructures()
std::string AddFeaProperty(int property_type=0)
void SetFeaMeshFileName(const std::string &geom_id, int fea_struct_ind, int file_type, const string &file_name)
void SetFeaPartPerpendicularSparID(const std::string &part_id, const std::string &perpendicular_spar_id)
std::string AddFeaMaterial()
std::string AddFeaPart(const std::string &geom_id, int fea_struct_ind, int type)
int AddFeaStruct(const std::string &geom_id, bool init_skin=true, int surfindex=0)
std::string GetFeaStructID(const std::string &geom_id, int fea_struct_ind)
void ReadVSPFile(const std::string &file_name)
void SetVSP3FileName(const std::string &file_name)
void SetBEMPropID(const string &prop_id)
std::string ImportFile(const std::string &file_name, int file_type, const std::string &parent)
std::string ExportFile(const std::string &file_name, int thick_set, int file_type, int subsFlag=1, int thin_set=vsp::SET_NONE)
void WriteVSPFile(const std::string &file_name, int set=SET_ALL)
void InsertVSPFile(const std::string &file_name, const std::string &parent_geom_id)
void DeleteGeom(const std::string &geom_id)
std::string GetGeomName(const std::string &geom_id)
std::vector< std::string > GetGeomTypes()
vec3d GetGeomBBoxMax(const std::string &geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true)
std::vector< std::string > GetGeomParmIDs(const std::string &geom_id)
int GetGeomVSPSurfType(const std::string &geom_id, int main_surf_ind=0)
std::vector< std::string > FindGeomsWithName(const std::string &name)
std::string FindGeom(const std::string &name, int index)
int GetTotalNumSurfs(const std::string &geom_id)
void UpdateGeom(const std::string &geom_id)
std::string GetGeomParent(const std::string &geom_id)
void SetDriverGroup(const std::string &geom_id, int section_index, int driver_0, int driver_1=-1, int driver_2=-1)
int GetNumMainSurfs(const std::string &geom_id)
std::vector< std::string > PasteGeomClipboard(const std::string &parent=std::string())
void CutGeomToClipboard(const std::string &geom_id)
std::vector< std::string > FindGeoms()
void SetGeomName(const std::string &geom_id, const std::string &name)
std::vector< std::string > GetGeomChildren(const std::string &geom_id)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
std::string GetGeomTypeName(const std::string &geom_id)
vec3d GetGeomBBoxMin(const std::string &geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true)
void CopyGeomToClipboard(const std::string &geom_id)
int GetGeomVSPSurfCfdType(const std::string &geom_id, int main_surf_ind=0)
void DeleteGeomVec(const std::vector< std::string > &del_vec)
void TranslateSet(int set_index, const vec3d &translation_vec)
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)
void ScaleSet(int set_index, double scale)
void RotateSet(int set_index, double x_rot_deg, double y_rot_deg, double z_rot_deg)
string AddProbe(const string &geomid, int surfindx, double u, double w, const string &name)
void DeleteAllRulers()
void DeleteAllProbes()
void DelProbe(const string &id)
string AddRuler(const string &startgeomid, int startsurfindx, double startu, double startw, const string &endgeomid, int endsurfindx, double endu, double endw, const string &name)
std::vector< string > GetAllProbes()
std::vector< string > GetAllRulers()
void DelRuler(const string &id)
void SetPCurve(const std::string &geom_id, const int &pcurveid, const std::vector< double > &tvec, const std::vector< double > &valvec, const int &newtype)
std::vector< double > PCurveGetValVec(const std::string &geom_id, const int &pcurveid)
std::vector< double > PCurveGetTVec(const std::string &geom_id, const int &pcurveid)
void ApproximateAllPropellerPCurves(const std::string &geom_id)
void PCurveDeletePt(const std::string &geom_id, const int &pcurveid, const int &indx)
void ResetPropellerThicknessCurve(const std::string &geom_id)
int PCurveSplit(const std::string &geom_id, const int &pcurveid, const double &tsplit)
int PCurveGetType(const std::string &geom_id, const int &pcurveid)
void PCurveConvertTo(const std::string &geom_id, const int &pcurveid, const int &newtype)
void WriteBodyFFCSVFile(const std::string &file_name)
void AddExcrescence(const std::string &excresName, const int &excresType, const double &excresVal)
void UpdateParasiteDrag()
void WriteCfEqnCSVFile(const std::string &file_name)
void WritePartialCfMethodCSVFile(const std::string &file_name)
void WriteAtmosphereCSVFile(const std::string &file_name, const int &atmos_type)
void WriteWingFFCSVFile(const std::string &file_name)
void CalcAtmosphere(const double &alt, const double &delta_temp, const int &atmos_type, double &temp, double &pres, double &pres_ratio, double &rho_ratio)
void DeleteExcrescence(const int &index)
std::string GetVehicleID()
std::string GetUserParmContainer()
std::vector< std::string > FindContainerGroupNames(const std::string &parm_container_id)
std::vector< std::string > GetAllUserParms()
void DeleteAllUserParm()
void DeleteUserParm(const std::string &id)
std::string FindContainer(const std::string &name, int index)
std::vector< std::string > FindContainerParmIDs(const std::string &parm_container_id)
int GetNumUserParms()
int GetNumPredefinedUserParms()
std::vector< std::string > FindContainers()
std::vector< std::string > FindContainersWithName(const std::string &name)
std::string GetContainerName(const std::string &parm_container_id)
string AddUserParm(int type, const string &name, const string &group)
std::string FindParm(const std::string &parm_container_id, const std::string &parm_name, const std::string &group_name)
void SetParmUpperLimit(const std::string &parm_id, double val)
double GetParmLowerLimit(const std::string &parm_id)
std::string GetParmName(const std::string &parm_id)
int GetParmType(const std::string &parm_id)
bool ValidParm(const std::string &id)
std::string GetParmDescript(const std::string &parm_id)
int GetIntParmVal(const std::string &parm_id)
double SetParmVal(const std::string &parm_id, double val)
double SetParmValUpdate(const std::string &parm_id, double val)
double GetParmVal(const std::string &parm_id)
std::string GetParm(const std::string &geom_id, const std::string &name, const std::string &group)
void SetParmDescript(const std::string &parm_id, const std::string &desc)
double GetParmUpperLimit(const std::string &parm_id)
void SetParmLowerLimit(const std::string &parm_id, double val)
double SetParmValLimits(const std::string &parm_id, double val, double lower_limit, double upper_limit)
std::string GetParmDisplayGroupName(const std::string &parm_id)
bool GetBoolParmVal(const std::string &parm_id)
std::string GetParmGroupName(const std::string &parm_id)
std::string GetParmContainer(const std::string &parm_id)
int GetNumResults(const std::string &name)
int GetNumData(const std::string &results_id, const std::string &data_name)
void PrintResults(const std::string &results_id)
const std::vector< vec3d > & GetVec3dResults(const std::string &id, const std::string &name, int index=0)
std::vector< std::string > GetAllResultsNames()
void DeleteResult(const std::string &id)
std::string FindLatestResultsID(const std::string &name)
const std::vector< int > & GetIntResults(const std::string &id, const std::string &name, int index=0)
std::string GetResultsName(const std::string &results_id)
const std::vector< std::vector< double > > & GetDoubleMatResults(const std::string &id, const std::string &name, int index=0)
const std::vector< double > & GetDoubleResults(const std::string &id, const std::string &name, int index=0)
int GetResultsType(const std::string &results_id, const std::string &data_name)
std::string GetResultsSetDoc(const std::string &results_id)
std::vector< std::string > GetAllDataNames(const std::string &results_id)
void WriteResultsCSVFile(const std::string &id, const std::string &file_name)
std::string FindResultsID(const std::string &name, int index=0)
void DeleteAllResults()
void WriteTestResults()
void PrintResultsDocs(const std::string &results_id)
std::string CreateGeomResults(const std::string &geom_id, const std::string &name)
const std::vector< std::string > & GetStringResults(const std::string &id, const std::string &name, int index=0)
void CopyPasteSet(int copyIndex, int pasteIndex)
void SetSetName(int index, const std::string &name)
bool GetSetFlag(const std::string &geom_id, int set_index)
std::vector< std::string > GetGeomSet(const std::string &name)
int GetSetIndex(const std::string &name)
std::vector< std::string > GetGeomSetAtIndex(int index)
int GetNumSets()
void SetSetFlag(const std::string &geom_id, int set_index, bool flag)
std::string GetSetName(int index)
double ComputeMinClearanceDistance(const std::string &geom_id, int set=SET_ALL)
double SnapParm(const std::string &parm_id, double target_min_dist, bool inc_flag, int set=SET_ALL)
int GetNumSubSurf(const std::string &geom_id)
std::vector< std::string > GetSubSurfIDVec(const std::string &geom_id)
std::string GetSubSurfName(const std::string &geom_id, const std::string &sub_id)
std::vector< std::string > GetAllSubSurfIDs()
std::string AddSubSurf(const std::string &geom_id, int type, int surfindex=0)
void DeleteSubSurf(const std::string &geom_id, const std::string &sub_id)
int GetSubSurfType(const std::string &sub_id)
void SetSubSurfName(const std::string &geom_id, const std::string &sub_id, const std::string &name)
std::vector< std::string > GetSubSurfParmIDs(const std::string &sub_id)
int GetSubSurfIndex(const std::string &sub_id)
std::string GetSubSurf(const std::string &geom_id, int index)
void CompVecCurvature01(const std::string &geom_id, const int &surf_indx, const std::vector< double > &us, const std::vector< double > &ws, std::vector< double > &k1_out_vec, std::vector< double > &k2_out_vec, std::vector< double > &ka_out_vec, std::vector< double > &kg_out_vec)
vec3d CompTanU01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void AxisProjVecPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector< vec3d > &pts, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
double ProjPnt01(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &u_out, double &w_out)
vec3d CompPntRST(const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t)
void ConvertLMNtoRST(const std::string &geom_id, const int &surf_indx, const double &l, const double &m, const double &n, double &r_out, double &s_out, double &t_out)
void ProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, const std::vector< double > &u0s, const std::vector< double > &w0s, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
void ProjVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
bool InsideSurf(const std::string &geom_id, const int &surf_indx, const vec3d &pt)
vec3d CompPnt01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void FindRSTVec(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, std::vector< double > &r_out_vec, std::vector< double > &s_out_vec, std::vector< double > &t_out_vec, std::vector< double > &d_out_vec)
double ProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out)
void ConvertLMNtoRSTVec(const std::string &geom_id, const int &surf_indx, const std::vector< double > &l_vec, const std::vector< double > &m_vec, const std::vector< double > &n_vec, std::vector< double > &r_out_vec, std::vector< double > &s_out_vec, std::vector< double > &t_out_vec)
void ConvertRSTtoLMN(const std::string &geom_id, const int &surf_indx, const double &r, const double &s, const double &t, double &l_out, double &m_out, double &n_out)
vec3d CompTanW01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void AxisProjVecPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const std::vector< vec3d > &pts, const std::vector< double > &u0s, const std::vector< double > &w0s, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec, std::vector< double > &d_out_vec)
void ConvertRSTtoLMNVec(const std::string &geom_id, const int &surf_indx, const std::vector< double > &r_vec, const std::vector< double > &s_vec, const std::vector< double > &t_vec, std::vector< double > &l_out_vec, std::vector< double > &m_out_vec, std::vector< double > &n_out_vec)
double ProjPnt01I(const std::string &geom_id, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out)
void FindRSTVecGuess(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts, const std::vector< double > &r0s, const std::vector< double > &s0s, const std::vector< double > &t0s, std::vector< double > &r_out_vec, std::vector< double > &s_out_vec, std::vector< double > &t_out_vec, std::vector< double > &d_out_vec)
void ConvertRtoL(const std::string &geom_id, const int &surf_indx, const double &r, double &l_out)
std::vector< bool > VecInsideSurf(const std::string &geom_id, const int &surf_indx, const std::vector< vec3d > &pts)
std::vector< vec3d > CompVecPntRST(const std::string &geom_id, const int &surf_indx, const std::vector< double > &r_in_vec, const std::vector< double > &s_in_vec, const std::vector< double > &t_in_vec)
double AxisProjPnt01Guess(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, const double &u0, const double &w0, double &u_out, double &w_out)
double AxisProjPnt01I(const std::string &geom_id, const int &iaxis, const vec3d &pt, int &surf_indx_out, double &u_out, double &w_out)
void CompCurvature01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w, double &k1_out, double &k2_out, double &ka_out, double &kg_out)
void ConvertLtoR(const std::string &geom_id, const int &surf_indx, const double &l, double &r_out)
void ConvertUtoEta(const std::string &geom_id, const double &u, double &eta_out)
double FindRST(const std::string &geom_id, const int &surf_indx, const vec3d &pt, double &r_out, double &s_out, double &t_out)
vec3d CompNorm01(const std::string &geom_id, const int &surf_indx, const double &u, const double &w)
void ConvertEtatoU(const std::string &geom_id, const double &eta, double &u_out)
std::vector< vec3d > CompVecNorm01(const std::string &geom_id, const int &surf_indx, const std::vector< double > &us, const std::vector< double > &ws)
std::vector< vec3d > CompVecPnt01(const std::string &geom_id, const int &surf_indx, const std::vector< double > &u_in_vec, const std::vector< double > &w_in_vec)
void GetUWTess01(const std::string &geom_id, const int &surf_indx, std::vector< double > &u_out_vec, std::vector< double > &w_out_vec)
double FindRSTGuess(const std::string &geom_id, const int &surf_indx, const vec3d &pt, const double &r0, const double &s0, const double &t0, double &r_out, double &s_out, double &t_out)
double AxisProjPnt01(const std::string &geom_id, const int &surf_indx, const int &iaxis, const vec3d &pt, double &u_out, double &w_out)
int GetNumUnsteadyGroups()
std::string GetUnsteadyGroupName(int group_index)
int GetNumUnsteadyRotorGroups()
std::vector< int > GetUnsteadyGroupSurfIndexes(int group_index)
std::vector< std::string > GetUnsteadyGroupCompIDs(int group_index)
int GetNumActuatorDisks()
std::string FindActuatorDisk(int disk_index)
std::string FindUnsteadyGroup(int group_index)
string GetVSPAERORefWingID()
string SetVSPAERORefWingID(const std::string &geom_id)
void AddVarPresetParm(const std::string &parm_id)
std::vector< std::string > GetVarPresetParmIDs()
bool DeleteVarPresetSet(const std::string &group_name, const std::string &setting_name)
std::vector< double > GetVarPresetParmValsWNames(const std::string &group_name, const std::string &setting_name)
std::string GetCurrentSettingName()
std::vector< std::string > GetVarPresetGroupNames()
std::vector< std::string > GetVarPresetParmIDsWName(const std::string &group_name)
std::vector< double > GetVarPresetParmVals()
void DeleteVarPresetParm(const std::string &parm_id)
void AddVarPresetGroup(const std::string &group_name)
std::string GetCurrentGroupName()
void AddVarPresetSetting(const std::string &setting_name)
void EditVarPresetParm(const std::string &parm_id, double parm_val)
std::vector< std::string > GetVarPresetSettingNamesWName(const std::string &group_name)
std::vector< std::string > GetVarPresetSettingNamesWIndex(int group_index)
void SwitchVarPreset(const std::string &group_name, const std::string &setting_name)
void VSPExit(int error_code)
int GetAndResetUpdateCount()
void Update(bool update_managers=true)
void ClearVSPModel()
std::string GetVSPFileName()
void StopGUI()
void PopupMsg(const std::string &msg)
bool IsGUIBuild()
void SetViewAxis(bool vaxis)
void SetGeomDisplayType(const string &geom_id, int type)
void SetShowBorders(bool brdr)
void Lock()
void SetGUIElementDisable(int e, bool state)
void InitGUI()
void SetGeomScreenDisable(int s, bool state)
void SetGeomDrawType(const string &geom_id, int type)
void UpdateGUI()
void Unlock()
void StartGUI()
void SetBackground(double r, double g, double b)
void DisableStopGUIMenuItem()
void ScreenGrab(const string &fname, int w, int h, bool transparentBG, bool autocrop=false)
void EnableStopGUIMenuItem()
void SetGUIScreenDisable(int s, bool state)
void InsertXSec(const std::string &geom_id, int index, int type)
std::vector< vec3d > ReadFileXSec(const std::string &xsec_id, const std::string &file_name)
void SetXSecContinuity(const std::string &xsec_id, int cx)
int GetLowerCSTDegree(const std::string &xsec_id)
void SetXSecWidthHeight(const std::string &xsec_id, double w, double h)
void SetXSecPnts(const std::string &xsec_id, std::vector< vec3d > &pnt_vec)
void DemoteCSTUpper(const std::string &xsec_id)
std::vector< vec3d > GetAirfoilLowerPnts(const std::string &xsec_id)
void SetXSecWidth(const std::string &xsec_id, double w)
double GetXSecWidth(const std::string &xsec_id)
std::vector< std::string > GetXSecParmIDs(const std::string &xsec_id)
std::vector< vec3d > GetFeatureLinePnts(const string &geom_id)
void SetXSecHeight(const std::string &xsec_id, double h)
void SetLowerCST(const std::string &xsec_id, int deg, const std::vector< double > &coefs)
void PasteXSec(const std::string &geom_id, int index)
std::vector< double > GetUpperCSTCoefs(const std::string &xsec_id)
vec3d ComputeXSecTan(const std::string &xsec_id, double fract)
void SetAirfoilPnts(const std::string &xsec_id, const std::vector< vec3d > &up_pnt_vec, const std::vector< vec3d > &low_pnt_vec)
std::string GetXSecParm(const std::string &xsec_id, const std::string &name)
std::vector< vec3d > GetAirfoilCoordinates(const std::string &geom_id, const double &foilsurf_u)
void PromoteCSTUpper(const std::string &xsec_id)
void PromoteCSTLower(const std::string &xsec_id)
void DemoteCSTLower(const std::string &xsec_id)
void FitAfCST(const std::string &xsec_surf_id, int xsec_index, int deg)
void CopyXSec(const std::string &geom_id, int index)
vec3d ComputeXSecPnt(const std::string &xsec_id, double fract)
std::vector< double > GetLowerCSTCoefs(const std::string &xsec_id)
void SetXSecTanStrengths(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
std::vector< double > GetVKTAirfoilCpDist(const double &alpha, const double &epsilon, const double &kappa, const double &tau, std::vector< vec3d > xyz_data)
void ReadFileAirfoil(const std::string &xsec_id, const std::string &file_name)
void SetXSecTanAngles(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
std::vector< vec3d > GetHersheyBarDragDist(const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag=false)
void ResetXSecSkinParms(const std::string &xsec_id)
std::vector< vec3d > GetAirfoilUpperPnts(const std::string &xsec_id)
std::vector< vec3d > GetHersheyBarLiftDist(const int &npts, const double &alpha, const double &Vinf, const double &span, bool full_span_flag=false)
std::vector< vec3d > GetVKTAirfoilPnts(const int &npts, const double &alpha, const double &epsilon, const double &kappa, const double &tau)
std::vector< vec3d > GetEllipsoidSurfPnts(const vec3d &center, const vec3d &abc_rad, int u_npts=20, int w_npts=20)
void CutXSec(const std::string &geom_id, int index)
std::vector< double > GetEllipsoidCpDist(const std::vector< vec3d > &surf_pnt_vec, const vec3d &abc_rad, const vec3d &V_inf)
void SetAirfoilLowerPnts(const std::string &xsec_id, const std::vector< vec3d > &low_pnt_vec)
void SetAirfoilUpperPnts(const std::string &xsec_id, const std::vector< vec3d > &up_pnt_vec)
int GetXSecShape(const std::string &xsec_id)
void SetXSecTanSlews(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
void WriteBezierAirfoil(const std::string &file_name, const std::string &geom_id, const double &foilsurf_u)
int GetUpperCSTDegree(const std::string &xsec_id)
void SetXSecCurvatures(const std::string &xsec_id, int side, double top, double right, double bottom, double left)
double GetXSecHeight(const std::string &xsec_id)
void WriteSeligAirfoil(const std::string &file_name, const std::string &geom_id, const double &foilsurf_u)
void SetUpperCST(const std::string &xsec_id, int deg, const std::vector< double > &coefs)
std::string GetXSecSurf(const std::string &geom_id, int index)
void SetXSecSurfGlobalXForm(const std::string &xsec_surf_id, const Matrix4d &mat)
std::string GetXSec(const std::string &xsec_surf_id, int xsec_index)
int GetNumXSecSurfs(const std::string &geom_id)
Matrix4d GetXSecSurfGlobalXForm(const std::string &xsec_surf_id)
int GetNumXSec(const std::string &xsec_surf_id)
void ChangeXSecShape(const std::string &xsec_surf_id, int xsec_index, int type)