This group of functions is available for adding, deleting, and modifying OpenVSP Geoms through the API. Click here to return to the main page. More...
Functions | |
| std::vector< std::string > | vsp::GetGeomTypes () |
| std::string | vsp::AddGeom (const std::string &type, const std::string &parent=std::string()) |
| void | vsp::UpdateGeom (const std::string &geom_id) |
| void | vsp::DeleteGeom (const std::string &geom_id) |
| void | vsp::DeleteGeomVec (const std::vector< std::string > &del_vec) |
| void | vsp::CutGeomToClipboard (const std::string &geom_id) |
| void | vsp::CopyGeomToClipboard (const std::string &geom_id) |
| std::vector< std::string > | vsp::PasteGeomClipboard (const std::string &parent=std::string()) |
| std::vector< std::string > | vsp::FindGeoms () |
| std::vector< std::string > | vsp::FindGeomsWithName (const std::string &name) |
| std::string | vsp::FindGeom (const std::string &name, int index) |
| void | vsp::SetGeomName (const std::string &geom_id, const std::string &name) |
| std::string | vsp::GetGeomName (const std::string &geom_id) |
| std::vector< std::string > | vsp::GetGeomParmIDs (const std::string &geom_id) |
| std::string | vsp::GetGeomTypeName (const std::string &geom_id) |
| void | vsp::SetGeomParent (const std::string &geom_id, const std::string &parent_id) |
| void | vsp::ReorderGeom (const std::string &geom_id, int reorder_type) |
| std::string | vsp::AttachGeomTexture (const std::string &geom_id, const std::string &file_name) |
| void | vsp::RemoveGeomTexture (const std::string &geom_id, const std::string &texture_id) |
| std::vector< std::string > | vsp::GetGeomTextureIDVec (const std::string &geom_id) |
| std::string | vsp::GetGeomTextureFileName (const std::string &geom_id, const std::string &texture_id) |
| std::string | vsp::GetGeomParent (const std::string &geom_id) |
| std::vector< std::string > | vsp::GetGeomChildren (const std::string &geom_id) |
| int | vsp::GetNumMainSurfs (const std::string &geom_id) |
| int | vsp::GetTotalNumSurfs (const std::string &geom_id) |
| int | vsp::GetGeomVSPSurfType (const std::string &geom_id, int main_surf_ind=0) |
| int | vsp::GetGeomVSPSurfCfdType (const std::string &geom_id, int main_surf_ind=0) |
| vec3d | vsp::GetGeomBBoxMax (const std::string &geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true) |
| vec3d | vsp::GetGeomBBoxMin (const std::string &geom_id, int main_surf_ind=0, bool ref_frame_is_absolute=true) |
| void | vsp::SplitWingXSec (const std::string &wing_id, int section_index) |
| std::vector< int > | vsp::GetDriverGroup (const std::string &geom_id, int section_index) |
| void | vsp::ResetPropellerThickness (const std::string &geom_id) |
| void | vsp::CopyAirfoil (const std::string &geom_id, int index) |
| void | vsp::PasteAirfoil (const std::string &geom_id, int index) |
| void | vsp::ClearSkinning (const std::string &geom_id, int index=-1) |
| void | vsp::ResetGeomScale (const std::string &geom_id) |
| void | vsp::AcceptGeomScale (const std::string &geom_id) |
| std::vector< vec3d > | vsp::GetPtCloudPnts (const std::string &geom_id) |
| std::string | vsp::CreateNGonMeshGeom (const std::string &geom_id) |
| std::string | vsp::CreateConvexHull (const std::string &geom_id) |
| void | vsp::ProjectPtCloudPts (const std::string &geom_id, const std::string &target_geom_id, int surf_index, int dir_index) |
|
extern |
Turn a MeshGeom into a Point Cloud Geom made of its mesh nodes. This is the Mesh screen's Convert to Point Cloud button.
| [in] | geom_id | string MeshGeom ID |
Keep a Geom's scaled size and reset the scale factor to one, folding the scaling into the Geom's own dimensions. This is the Scale tab's Accept button.
| [in] | geom_id | string Geom ID |
|
extern |
Add a new Geom of given type as a child of the specified parent. If no parent or an invalid parent is given, the Geom is placed at the top level
| [in] | type | string Geom type (i.e FUSELAGE, POD, etc.) |
| [in] | parent | string Parent Geom ID |
|
extern |
Attach a texture image to a Geom, the way the Add button on the Texture screen does. A texture is drawn on the Geom's surface at a placement given by its Parms; the returned ID is a ParmContainer ID, so U, W, U_Scale, W_Scale, Transparency, U_Flip and W_Flip in the "Texture_Parm" group are reached the usual way.
| [in] | geom_id | string Geom ID |
| [in] | file_name | string Name of the texture image file |
|
extern |
Clear the skinning of one cross section, or of every cross section when the index is left at -1. This is the Skinning tab's Clear and Clear All buttons.
| [in] | geom_id | string Geom ID |
| [in] | index | int Cross section index, or -1 for every section |
|
extern |
Link two Parms so that changing the first drives the second. This is the simple Parm Link the Link screen builds, not an Advanced Link. The link is created with its offset active and set to the difference between the two Parms, so B follows A while holding its current separation.
| [in] | parm_a_id | string Parm ID of the driving Parm |
| [in] | parm_b_id | string Parm ID of the driven Parm |
Copy the airfoil of a wing section to the airfoil clipboard. This is a separate clipboard from the one CopyXSec uses, so an airfoil can be moved without carrying the section geometry with it.
| [in] | geom_id | string Wing Geom ID |
| [in] | index | int Wing section index |
|
extern |
Copy Geom from current location and store on clipboard
| [in] | geom_id | string Geom ID |
|
extern |
Build the convex hull of a Point Cloud Geom. The hull arrives as a new MeshGeom; the point cloud itself is left alone. This is the Point Cloud screen's Convex Hull button.
| [in] | geom_id | string Point Cloud Geom ID |
|
extern |
Turn a MeshGeom into an NGon Mesh Geom. This is the Mesh screen's Convert to NGon Mesh button.
| [in] | geom_id | string MeshGeom ID |
|
extern |
Cut Geom from current location and store on clipboard
| [in] | geom_id | string Geom ID |
|
extern |
Delete a particular Geom
| [in] | geom_id | string Geom ID |
|
extern |
Delete multiple Geoms
| [in] | del_vec | vector<string> Vector of Geom IDs |
|
extern |
Find and return the Geom ID with the specified name at given index. Equivalent to FindGeomsWithName( name )[index].
| [in] | name | string Geom name |
| [in] | index |
|
extern |
Find and return all Geom IDs in the model
|
extern |
Find and return all Geom IDs with the specified name
| [in] | name | string Geom name |
|
extern |
Set the driver group for a wing section or a XSecCurve. Care has to be taken when setting these driver groups to ensure a valid combination.
| [in] | geom_id | string Geom ID |
| [in] | section_index | int Wing section index |
| [in] | driver_0 | int First driver enum (i.e. SPAN_WSECT_DRIVER) |
| [in] | driver_1 | int Second driver enum (i.e. ROOTC_WSECT_DRIVER) |
| [in] | driver_2 | int Third driver enum (i.e. TIPC_WSECT_DRIVER) |
Get the driver group for a wing section or an XSec. A wing section reports three drivers; an XSecCurve reports the drivers of its own driver group.
| [in] | geom_id | string Geom ID |
| [in] | section_index | int Wing section or XSec index |
|
extern |
Get the the maximum coordinate of the bounding box of a Geom with given main surface index. The Geom bounding box may be specified in absolute or body reference frame.
| [in] | geom_id | string Geom ID |
| [in] | main_surf_ind | int Main surface index |
| [in] | ref_frame_is_absolute | bool Flag to specify absolute or body reference frame |
|
extern |
Get the the minimum coordinate of the bounding box of a Geom with given main surface index. The Geom bounding box may be specified in absolute or body reference frame.
| [in] | geom_id | string Geom ID |
| [in] | main_surf_ind | int Main surface index |
| [in] | ref_frame_is_absolute | bool Flag to specify absolute or body reference frame |
|
extern |
Get the IDs for each child of the input parent Geom.
| [in] | geom_id | string Geom ID |
|
extern |
Get the name of a specific Geom
| [in] | geom_id | string Geom ID |
|
extern |
Get the parent Geom ID for the input child Geom. "NONE" is returned if the Geom has no parent.
| [in] | geom_id | string Geom ID |
|
extern |
Get all Parm IDs associated with this Geom Parm container
| [in] | geom_id | string Geom ID |
|
extern |
Get the image file a texture was attached from.
| [in] | geom_id | string Geom ID |
| [in] | texture_id | string Texture ParmContainer ID |
|
extern |
Get the ParmContainer IDs of all the textures attached to a Geom, in the order they are drawn.
| [in] | geom_id | string Geom ID |
|
extern |
Get the type name of specified Geom (i.e. FUSELAGE)
| [in] | geom_id | string Geom ID |
|
extern |
Get an array of all Geom types (i.e FUSELAGE, POD, etc.)
|
extern |
Get the VSP surface CFD type of the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | main_surf_ind | int Main surface index |
|
extern |
Get the VSP surface type of the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | main_surf_ind | int Main surface index |
|
extern |
Get the number of main surfaces for the specified Geom. Multiple main surfaces may exist for CustoGeoms, propellors, etc., but does not include surfaces created due to symmetry.
| [in] | geom_id | string Geom ID |
|
extern |
Get the points of a Point Cloud Geom
| [in] | geom_id | string Point Cloud Geom ID |
|
extern |
Get the total number of surfaces for the specified Geom. This is equivalent to the number of main surface multiplied by the number of symmetric copies.
| [in] | geom_id | string Geom ID |
|
extern |
Paste the airfoil clipboard onto a wing section
| [in] | geom_id | string Wing Geom ID |
| [in] | index | int Wing section index |
|
extern |
Paste Geom from clipboard into the model. The Geom is pasted as a child of the specified parent, but will be placed at top level if no parent or an invalid one is provided.
| [in] | parent | string Parent Geom ID |
|
extern |
Project the points of a point cloud onto a surface of another Geom, the way the Project button on the Point Cloud screen does. Each point is moved along the chosen axis until it lands on the target surface; a point that does not hit the surface is left where it is.
| [in] | geom_id | string Point cloud Geom ID |
| [in] | target_geom_id | string Geom ID of the Geom to project onto |
| [in] | surf_index | int Surface index on the target Geom |
| [in] | dir_index | int Direction to project along, X_DIR, Y_DIR or Z_DIR (see DIR_INDEX) |
|
extern |
Remove a texture from a Geom, the way the Delete button on the Texture screen does.
| [in] | geom_id | string Geom ID |
| [in] | texture_id | string Texture ParmContainer ID |
|
extern |
Move a Geom within the list of its siblings, the way the move buttons beside the Geom browser do. A Geom's position among its siblings sets the order it is written, exported and drawn in; it does not change the Geom's parent or its geometry.
| [in] | geom_id | string Geom ID |
| [in] | reorder_type | int Reorder type enum (see REORDER_TYPE) |
|
extern |
Discard a Geom's pending scale and return it to its unscaled size. This is the Scale tab's Reset button. Use AcceptGeomScale to keep the scaled size instead.
| [in] | geom_id | string Geom ID |
|
extern |
Rebuild a propeller's thickness curve from the airfoils actually on its cross sections, the way the Reset Thickness button on the Prop screen does. The thickness curve normally drives the sections; this runs the relationship the other way once, so a blade built up section by section gets a thickness curve that matches what it already is.
| [in] | geom_id | string Propeller Geom ID |
|
extern |
Set the name of the specified Geom
| [in] | geom_id | string Geom ID |
| [in] | name | string Geom name |
|
extern |
Get the parent Geom ID for the input child Geom. "NONE" is returned if the Geom has no parent.
| [in] | geom_id | string Geom ID |
| [in] | parent_id | string Parent Geom ID |
|
extern |
Split a given wing section.
| [in] | wing_id | string Geom ID |
| [in] | section_index | int Wing section index |
|
extern |
Perform an update for the specified Geom
| [in] | geom_id | string Geom ID |