 |
Iso-Surface(等値面)の生成
create_iso(iso_table) この関数は、iso_tableを入力引数として、Iso-Surface(等値面)を生成します。
iso_table このテーブルはiso-surface(等値面)を表し、create_iso関数の入力引数となります。 |
| 入力フィールド |
データ型 |
コメント |
デフォルト値 |
| Dataset |
number |
データセット番号
|
“current dataset"
|
| iso_func
|
string または table
|
データ型がstringの場合、等値面の関数名
データ型がtableの場合、modeとサブテーブル
|
|
| mode |
string |
“point_and_normal” または “points_in_plane”
|
|
| pt1 |
number |
{ x, y, z }
|
|
| pt2 |
table |
{ x, y, z }
|
|
| pt3 |
number |
{ x, y, z } mode =“points_in_plane”の場合に指定
|
|
| iso_value |
table |
min, current, maxを指定
|
|
| min |
number |
|
|
| current |
number |
|
|
| max |
number |
|
|
| geometric_color |
number または string |
“white”, “black”, または 1~8の数字
|
|
| show_mesh |
string |
“on” または “off”
|
“off”
|
| Unrolled |
string |
“on” または “off”
|
“off”
|
| Contours |
string |
"none", "black", "white", "scalar", "geometric“
scalar_func が “none”の場合に、“none”以外の値に設定すると無効
|
“none”
|
| number_of_contours |
number |
“Filled Contour” が OFFの場合、最大値は500
“Filled Contour” が ONの場合、最大値は100この値よりも高く設定した場合は100に減らされます。
|
16
|
| Transparency |
number |
範囲は0~1で、0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1の最も近い値に丸められます。クエリを実行するとこれらの値が戻ります。
|
0
|
| line_type |
string |
"thin", "medium", "thick"
|
"thin"
|
| scalar_func |
string |
スカラー関数名または “none”
|
“none”
|
| scalar_range
|
table |
min, maxで範囲を指定
|
n/a
|
| min |
number |
|
n/a
|
| max |
number |
|
n/a
|
| use_local |
number |
“on” または “off”
|
“off”
|
| vector_func |
string |
ベクトル関数名または “none”
サーフェスにvector_funcが指定されている場合、サーフェスはベクトルとして表示されるため、display_typeパラメータは無効です。
|
“none”
|
| threshold_func |
string |
スレッショルド関数名または “none” |
“none”
|
| threshold_range |
table |
min, maxで範囲を指定 |
n/a
|
| min |
number |
|
n/a
|
| max |
number |
|
n/a
|
| Visibility |
string |
“on” または “off”
|
“on”
|
| display_type |
string |
“constant_shading”, “faceted_shading”,“smooth_shading”, “mesh_shading”, “contour_lines”, “crinkle”, “vertices”,
“shaded_vertices”
|
“constant_shading”
|
例:
--define iso surface
iso_table = {
dataset = 2,
iso_func = {
mode = "point_and_normal",
pt1 = {1,0,0},
pt2 = {1,1,0},
},
iso_value = {
min = -10,
current = 0,
max = 20,
},
scalar_func = "Cp [PLOT3D]",
vector_func = "none",
threshold_func = "Enthalpy [PLOT3D]",
threshold_range = {
min = 2.4,
max = 2.5,
},
visibility = "on",
}
--create iso surface and assign handle to variable "s"
s = create_iso(iso_table)
|