元編程參考文件

Weed 曲線列表

15 個節點

本頁內容 15

交替分支

函數

Selects alternating branches, retaining their paths and copying curve geometry.

簽名
交替分支 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    第一個: 真否
CadTree<Curve> AlternatingBranches(
    CadTree<Curve> curves,
    bool first = true)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
第一個真否True

返回

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

交替點

函數

Selects alternating point items in each branch, starting with even indices when first is true.

簽名
交替點 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    第一個: 真否
CadTree<Point3d> AlternatingPoints(
    CadTree<Point3d> points,
    bool first = true)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
第一個真否True

返回

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

包圍盒中心

函數

Returns the center of the accurate union bounding box of a nonempty curve list.

簽名
包圍盒中心(曲線: Curve 陣列) -> Point3d
Point3d BoundsCenter(Curve[] curves)

參數

名稱型別預設值說明
曲線Curve 陣列—

返回

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

控制點

函數

Returns the control vertices of each curve in its own child branch.

簽名
控制點(曲線: Curve 的 Cad Tree) -> Point3d 的 Cad Tree
CadTree<Point3d> ControlPoints(CadTree<Curve> curves)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—

返回

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

剔除點索引

函數

Removes one point index from each branch, appending the single index-operation output path.

簽名
剔除點索引 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    索引: 整數
CadTree<Point3d> CullPointIndex(
    CadTree<Point3d> points,
    int index = 0)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
索引整數0

返回

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

分組拉伸

函數

Extrudes each curve-group branch along Z by its corresponding height, keeping open profiles uncapped.

簽名
分組拉伸 -> Cad Model
    曲線: Curve 的 Cad Tree
    高度: 數字陣列
    封閉端面: 真否
CadModel ExtrudeGroups(
    CadTree<Curve> curves,
    double[] heights,
    bool capped = false)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
高度數字陣列—
封閉端面真否False

返回

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

交錯

函數

Interleaves two equally sized lists, equivalent to merging paired singleton branches and then flattening.

簽名
交錯(第一個: Curve 陣列, 第二個: Curve 陣列) -> Curve 陣列
Curve[] Interleave(Curve[] first, Curve[] second)

參數

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

返回

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

項

函數

Returns a curve from a list using cyclic or strict indexing.

簽名
項(曲線: Curve 陣列, 索引: 整數, 環繞: 真否) -> Curve
Curve Item(Curve[] curves, int index = 0, bool wrap = true)

參數

名稱型別預設值說明
曲線Curve 陣列—
索引整數0
環繞真否True

返回

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

合併

函數

Concatenates two curve lists in source order.

簽名
合併(第一個: Curve 陣列, 第二個: Curve 陣列) -> Curve 陣列
Curve[] Merge(Curve[] first, Curve[] second)

參數

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

返回

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

沿 X 鏡像

函數

Mirrors a curve across the world YZ plane.

簽名
沿 X 鏡像(曲線: Curve) -> Curve
Curve MirrorX(Curve curve)

參數

名稱型別預設值說明
曲線Curve—

返回

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

分組沿 X 移動

函數

Moves each curve-group branch along X by its corresponding distance. Counts must agree.

簽名
分組沿 X 移動 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    距離: 數字陣列
CadTree<Curve> MoveGroupsX(
    CadTree<Curve> curves,
    double[] distances)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
距離數字陣列—

返回

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

矩形單元

函數

Constructs rectangular cells in the XY plane, one branch per X column and Y varying inside each branch.

簽名
矩形單元 -> Curve 的 Cad Tree
    X 尺寸: 數字
    Y 尺寸: 數字
    X 向數量: 整數
    Y 向數量: 整數
CadTree<Curve> RectangularCells(
    double sizeX = 1,
    double sizeY = 1,
    int countX = 1,
    int countY = 10)

參數

名稱型別預設值說明
X 尺寸數字1
Y 尺寸數字1
X 向數量整數1
Y 向數量整數10

返回

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

分組沿 X 縮放

函數

Copies a curve group for each X scale factor around a supplied center; each transformed group occupies one branch.

簽名
分組沿 X 縮放 -> Curve 的 Cad Tree
    曲線: Curve 陣列
    係數: 數字陣列
    中心: Point3d
CadTree<Curve> ScaleGroupsX(
    Curve[] curves,
    double[] factors,
    Point3d center)

參數

名稱型別預設值說明
曲線Curve 陣列—
係數數字陣列—
中心Point3d—

返回

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

頂點

函數

Returns a curve's control vertices, optionally reversing their order explicitly.

簽名
頂點(曲線: Curve, 反向: 真否) -> Point3d 陣列
Point3d[] Vertices(Curve curve, bool reverse = false)

參數

名稱型別預設值說明
曲線Curve—
反向真否False

返回

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

寬度

函數

Returns the accurate X extent of each curve-group branch.

簽名
寬度(曲線: Curve 的 Cad Tree) -> 數字陣列
double[] Widths(CadTree<Curve> curves)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—

返回

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