Functions related to Sub-Surfaces are defined in this group.
Click here to return to the main page.
More...
◆ AddSubSurf()
string AddSubSurf |
( |
const string &in |
geom_id, |
|
|
int |
type, |
|
|
int |
surfindex = 0 |
|
) |
| |
Add a sub-surface to the specified Geom
string wid =
AddGeom(
"WING",
"" );
SetParmVal( wid,
"Const_Line_Value",
"SubSurface_1", 0.4 );
- See also
- SUBSURF_TYPE
- Parameters
-
[in] | geom_id | Geom ID |
[in] | type | Sub-surface type enum (i.e. SS_RECTANGLE) |
[in] | surfindex | Main surface index (default: 0) |
- Returns
- Sub-surface ID
◆ DeleteSubSurf() [1/2]
void DeleteSubSurf |
( |
const string &in |
geom_id, |
|
|
const string &in |
sub_id |
|
) |
| |
Delete the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print(
"Delete SS_Line\n");
string num_str =
string(
"Number of SubSurfaces: ") + formatInt( num_ss,
'' ) +
string(
"\n");
- Parameters
-
[in] | geom_id | Geom ID |
[in] | sub_id | Sub-surface ID |
◆ DeleteSubSurf() [2/2]
void DeleteSubSurf |
( |
const string &in |
sub_id | ) |
|
Delete the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print(
"Delete SS_Line\n");
string num_str =
string(
"Number of SubSurfaces: ") + formatInt( num_ss,
'' ) +
string(
"\n");
- Parameters
-
◆ GetAllSubSurfIDs()
string [] GetAllSubSurfIDs |
( |
| ) |
|
Get a vector of all sub-surface IDs for the entire model
- Returns
- Array of sub-surface IDs
◆ GetNumSubSurf()
int GetNumSubSurf |
( |
const string &in |
geom_id | ) |
|
Get the number of sub-surfaces for the specified Geom
string wid =
AddGeom(
"WING",
"" );
string num_str =
string(
"Number of SubSurfaces: ") + num_ss +
string(
"\n");
- Parameters
-
- Returns
- Number of Sub-surfaces
◆ GetSubSurf() [1/2]
Get the ID of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
Print( ss_rec_2,
false );
- Parameters
-
[in] | geom_id | Geom ID |
[in] | index | Sub-surface index |
- Returns
- Sub-surface ID
◆ GetSubSurf() [2/2]
Get all sub-surface IDs with specified parent Geom and name
string wid =
AddGeom(
"WING",
"" );
string ID_str =
string(
"IDs of subsurfaces named \"") + rec_name +
string(
"\": ") + id_vec[0];
- Parameters
-
[in] | geom_id | Geom ID |
[in] | name | Sub-surface name |
- Returns
- Array of sub-surface IDs
◆ GetSubSurfIDVec()
Get a vector of all sub-surface IDs for the specified geometry
string wid =
AddGeom(
"WING",
"" );
string id_type_str =
string(
"SubSurface IDs and Type Indexes -> ");
for ( uint i = 0; i < uint(id_vec.length()); i++ )
{
id_type_str += id_vec[i];
}
- Parameters
-
- Returns
- Array of sub-surface IDs
◆ GetSubSurfIndex()
int GetSubSurfIndex |
( |
const string &in |
sub_id | ) |
|
Get the index of the specified sub-surface in its parent Geom's sub-surface vector
string wid =
AddGeom(
"WING",
"" );
string ind_str =
string(
"Index of SS_Rectangle: ") + ind +
string(
"\n");
- Parameters
-
- Returns
- Sub-surface index
◆ GetSubSurfName() [1/2]
Get the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string name_str =
string(
"Current Name of SS_Rectangle: ") + rec_name +
string(
"\n");
- Parameters
-
[in] | geom_id | Geom ID |
[in] | sub_id | Sub-surface ID |
- Returns
- Sub-surface name
◆ GetSubSurfName() [2/2]
Get the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string name_str =
string(
"Current Name of SS_Rectangle: ") + rec_name +
string(
"\n");
- Parameters
-
- Returns
- Sub-surface name
◆ GetSubSurfParmIDs()
Get the vector of Parm IDs for specified sub-surface
string wid =
AddGeom(
"WING",
"" );
for ( uint i = 0; i < uint(parm_id_vec.length()); i++ )
{
}
- Parameters
-
- Returns
- Array of Parm IDs
◆ GetSubSurfType()
int GetSubSurfType |
( |
const string &in |
sub_id | ) |
|
Get the type for the specified sub-surface (i.e. SS_RECTANGLE)
string wid =
AddGeom(
"WING",
"" );
string id_type_str =
string(
"SubSurface IDs and Type Indexes -> ");
for ( uint i = 0; i < uint(id_vec.length()); i++ )
{
id_type_str += id_vec[i];
}
- See also
- SUBSURF_TYPE
- Parameters
-
- Returns
- Sub-surface type enum (i.e. SS_RECTANGLE)
◆ SetSubSurfName() [1/2]
void SetSubSurfName |
( |
const string &in |
geom_id, |
|
|
const string &in |
sub_id, |
|
|
const string &in |
name |
|
) |
| |
Set the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string new_name =
string(
"New_SS_Rec_Name");
- Parameters
-
[in] | geom_id | Geom ID |
[in] | sub_id | Sub-surface ID |
[in] | name | Sub-surface name |
◆ SetSubSurfName() [2/2]
void SetSubSurfName |
( |
const string &in |
sub_id, |
|
|
const string &in |
name |
|
) |
| |
Set the name of the specified sub-surface
string wid =
AddGeom(
"WING",
"" );
string new_name =
string(
"New_SS_Rec_Name");
- Parameters
-
[in] | sub_id | Sub-surface ID |
[in] | name | Sub-surface name |