要素の座標値の最小値、最大値
サンプル #include <uf_modl.h> #include <uf_modl_error.h> #include <uf_modl_types.h> #include <uf_modl_ugopenint.h> using namespace std; void Func1(tag_t tObj, double dMin[3], double dMax[3]) { int ret; double dCoords[6]; //ワイヤーフレームおよびソリッドタイプ要素のバウンディングボックスを返す ret = UF_MODL_ask_bounding_box(tObj, dCoords); dMin[0] = dCoords[0]; dMin[1] = dCoords[1]; dMin[2] = dCoords[2]; dMax[0] = dCoords[3]; dMax[1] = dCoords[4]; dMax[2] = dCoords[5]; int i; for(i = 0; i < 6; i++) { cout << i << " -> " << dCoords[i] << endl; } return; }