This group of API functions provide the capabilities available in the Snap-To tool. Click here to return to the main page.
More...
◆ ComputeMinClearanceDistance()
double vsp::ComputeMinClearanceDistance |
( |
const std::string & | geom_id, |
|
|
int | set = SET_ALL ) |
|
extern |
Compute the minimum clearance distance for the specified geometry
string fid =
AddGeom(
"FUSELAGE",
"" );
string x =
GetParm( pid,
"X_Rel_Location",
"XForm" );
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
double SetParmVal(const std::string &parm_id, double val)
std::string GetParm(const std::string &geom_id, const std::string &name, const std::string &group)
double ComputeMinClearanceDistance(const std::string &geom_id, int set=SET_ALL)
void Update(bool update_managers=true)
- Parameters
-
[in] | geom_id | string Geom ID |
[in] | set | Collision set enum (i.e. SET_ALL) |
- Returns
- Minimum clearance distance
◆ SnapParm()
double vsp::SnapParm |
( |
const std::string & | parm_id, |
|
|
double | target_min_dist, |
|
|
bool | inc_flag, |
|
|
int | set = SET_ALL ) |
|
extern |
Snap the specified Parm to input target minimum clearance distance
string fid =
AddGeom(
"FUSELAGE",
"" );
string x =
GetParm( pid,
"X_Rel_Location",
"XForm" );
double SnapParm(const std::string &parm_id, double target_min_dist, bool inc_flag, int set=SET_ALL)
- Parameters
-
[in] | parm_id | string Parm ID |
[in] | target_min_dist | Target minimum clearance distance |
[in] | inc_flag | Direction indication flag. If true, upper parm limit is used and direction is set to positive |
[in] | set | Collision set enum (i.e. SET_ALL) |
- Returns
- Minimum clearance distance