元編程參考文件

Weed 實體列表

14 個節點

本頁內容 14

加上向量

函數

Adds matched displacement vectors.

簽名
加上向量 -> Vector3d 陣列
    第一個: Vector3d 陣列
    第二個: Vector3d 陣列
Vector3d[] AddVectors(Vector3d[] first, Vector3d[] second)

參數

名稱型別預設值說明
第一個Vector3d 陣列—
第二個Vector3d 陣列—

返回

結果Vector3d 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

面積

函數

Computes the trimmed area of each model item.

簽名
面積(模型: Cad Model 的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> Areas(CadTree<CadModel> models)

參數

名稱型別預設值說明
模型Cad Model 的 Cad Tree—

返回

結果數字的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

面

函數

Extracts all trimmed faces into one branch per input model.

簽名
面(模型: Cad Model 陣列) -> Cad Model 的 Cad Tree
CadTree<CadModel> Faces(CadModel[] models)

參數

名稱型別預設值說明
模型Cad Model 陣列—

返回

結果Cad Model 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

標架

函數

Evaluates the underlying parameter frame of each single-face model at normalized coordinates; trimmed topology stays on the source model.

簽名
標架(面: Cad Model 陣列, U: 數字, V: 數字) -> Plane 陣列
Plane[] Frames(CadModel[] faces, double u = 0.5, double v = 0.5)

參數

名稱型別預設值說明
面Cad Model 陣列—
U數字0.5
V數字0.5

返回

結果Plane 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

高度

函數

Returns each model's world Y bounding extent.

簽名
高度(模型: Cad Model 陣列) -> 數字陣列
double[] Heights(CadModel[] models)

參數

名稱型別預設值說明
模型Cad Model 陣列—

返回

結果數字陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

項

函數

Selects one item from each model branch in branch order.

簽名
項 -> Cad Model 陣列
    模型: Cad Model 的 Cad Tree
    索引: 整數
    環繞: 真否
CadModel[] Items(
    CadTree<CadModel> models,
    int index = 0,
    bool wrap = true)

參數

名稱型別預設值說明
模型Cad Model 的 Cad Tree—
索引整數0
環繞真否True

返回

結果Cad Model 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

移動複製

函數

Translates one assembly independently by every supplied displacement.

簽名
移動複製(模型: Cad Model, 位移: Vector3d 陣列) -> Cad Model 陣列
CadModel[] MoveCopies(CadModel model, Vector3d[] motions)

參數

名稱型別預設值說明
模型Cad Model—
位移Vector3d 陣列—

返回

結果Cad Model 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

定向

函數

Orients matched models from local source frames onto one destination frame.

簽名
定向 -> Cad Model 陣列
    模型: Cad Model 陣列
    源: Plane 陣列
    目標: Plane
CadModel[] Orient(
    CadModel[] models,
    Plane[] sources,
    Plane target)

參數

名稱型別預設值說明
模型Cad Model 陣列—
源Plane 陣列—
目標Plane—

返回

結果Cad Model 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

沿 Y 反轉

函數

Reverses each plane's Y axis, which also reverses its normal.

簽名
沿 Y 反轉(平面: Plane 陣列) -> Plane 陣列
Plane[] ReverseY(Plane[] planes)

參數

名稱型別預設值說明
平面Plane 陣列—

返回

結果Plane 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

縮放模型

函數

Scales matched assemblies about world-axis frames at supplied centers, preserving Z unless requested otherwise.

簽名
縮放模型 -> Cad Model 陣列
    模型: Cad Model 陣列
    中心點: Point3d 陣列
    X: 數字陣列
    Y: 數字陣列
    Z: 數字
CadModel[] ScaleModels(
    CadModel[] models,
    Point3d[] centers,
    double[] x,
    double[] y,
    double z = 1)

參數

名稱型別預設值說明
模型Cad Model 陣列—
中心點Point3d 陣列—
X數字陣列—
Y數字陣列—
Z數字1

返回

結果Cad Model 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

排序

函數

Sorts each model branch by supplied area or other numeric keys; reversing is explicit.

簽名
排序 -> Cad Model 的 Cad Tree
    模型: Cad Model 的 Cad Tree
    鍵: 數字的 Cad Tree
    降序: 真否
CadTree<CadModel> Sort(
    CadTree<CadModel> models,
    CadTree<double> keys,
    bool descending = false)

參數

名稱型別預設值說明
模型Cad Model 的 Cad Tree—
鍵數字的 Cad Tree—
降序真否False

返回

結果Cad Model 的 Cad Tree
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

寬度

函數

Returns each model's world X bounding extent.

簽名
寬度(模型: Cad Model 陣列) -> 數字陣列
double[] Widths(CadModel[] models)

參數

名稱型別預設值說明
模型Cad Model 陣列—

返回

結果數字陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

X 向量

函數

Constructs X-axis displacement vectors.

簽名
X 向量(值: 數字陣列) -> Vector3d 陣列
Vector3d[] XVectors(double[] values)

參數

名稱型別預設值說明
值數字陣列—

返回

結果Vector3d 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計

Y 向量

函數

Constructs Y-axis displacement vectors.

簽名
Y 向量(值: 數字陣列) -> Vector3d 陣列
Vector3d[] YVectors(double[] values)

參數

名稱型別預設值說明
值數字陣列—

返回

結果Vector3d 陣列
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
Weed 實體列表
所屬包
電腦輔助設計