元編程參考文件

Weed 圖案

10 個節點

本頁內容 10

拉伸輪廓

函數

Extrudes each supplied profile by the same vector; closed profiles may be capped explicitly.

簽名
拉伸輪廓 -> Cad Model
    輪廓: Curve 陣列
    方向: Vector3d
    封閉端面: 真否
CadModel ExtrudeProfiles(
    Curve[] profiles,
    Vector3d direction,
    bool capped = true)

參數

名稱型別預設值說明
輪廓Curve 陣列—
方向Vector3d—
封閉端面真否True

返回

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

管道

函數

Builds solid round rails from curves, preserving independent bodies for fabrication or assembly.

簽名
管道(導軌: Curve 陣列, 半徑: 數字) -> Cad Model
CadModel Pipes(Curve[] rails, double radius = 0.1)

參數

名稱型別預設值說明
導軌Curve 陣列—
半徑數字0.1

返回

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

尖拱

函數

Two straight legs and two interpolated upper ribs form a pointed arch; span and rise are model dimensions.

簽名
尖拱(跨度: 數字, 矢高: 數字, 起拱高度: 數字) -> Curve 陣列
Curve[] PointedArch(
    double span = 12,
    double rise = 15,
    double springHeight = 5)

參數

名稱型別預設值說明
跨度數字12
矢高數字15
起拱高度數字5

返回

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

輪廓蒙皮

函數

Builds a periodic quad skin from equal parameter samples on ordered closed profiles. The V seam is welded by index; winding faces outward for counterclockwise profiles ordered upward.

簽名
輪廓蒙皮(輪廓: Curve 陣列, 樣本: 整數) -> Mesh
Mesh ProfileSkin(Curve[] profiles, int samples = 48)

參數

名稱型別預設值說明
輪廓Curve 陣列—
樣本整數48

返回

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

重複曲線

函數

Copies a profile along a vector at every distance, preserving input order.

簽名
重複曲線 -> Curve 陣列
    曲線: Curve
    方向: Vector3d
    距離: 數字陣列
Curve[] RepeatCurve(
    Curve curve,
    Vector3d direction,
    double[] distances)

參數

名稱型別預設值說明
曲線Curve—
方向Vector3d—
距離數字陣列—

返回

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

重複多條曲線

函數

Copies a family of curves at each distance, with curve index varying fastest.

簽名
重複多條曲線 -> Curve 陣列
    曲線: Curve 陣列
    方向: Vector3d
    距離: 數字陣列
Curve[] RepeatCurves(
    Curve[] curves,
    Vector3d direction,
    double[] distances)

參數

名稱型別預設值說明
曲線Curve 陣列—
方向Vector3d—
距離數字陣列—

返回

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

超級公式輪廓

函數

Closed superformula profiles at given heights, with linear taper and rotation in radians per model unit.

簽名
超級公式輪廓 -> Curve 陣列
    高度: 數字陣列
    半徑: 數字
    矩陣: 數字
    N1: 數字
    N2: 數字
    N3: 數字
    扭轉: 數字
    錐度: 數字
    分段數: 整數
Curve[] SuperformulaProfiles(
    double[] heights,
    double radius = 12,
    double m = 6,
    double n1 = 4,
    double n2 = 8,
    double n3 = 8,
    double twist = 0.025,
    double taper = 0.003,
    int segments = 48)

參數

名稱型別預設值說明
高度數字陣列—
半徑數字12
矩陣數字6
N1數字4
N2數字8
N3數字8
扭轉數字0.025
錐度數字0.003
分段數整數48

返回

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

波浪網格

函數

Samples a sinusoidal height field on a U-major rectangular grid for mesh and subdivision studies.

簽名
波浪網格 -> Point3d 陣列
    U 向數量: 整數
    V 向數量: 整數
    間距: 數字
    振幅: 數字
Point3d[] WaveGrid(
    int countU = 5,
    int countV = 7,
    double spacing = 2,
    double amplitude = 3)

參數

名稱型別預設值說明
U 向數量整數5
V 向數量整數7
間距數字2
振幅數字3

返回

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

波浪輪廓

函數

Samples a sine-displaced closed strip in the XZ plane, for extruded fins and rib studies.

簽名
波浪輪廓 -> Curve
    高度: 數字
    寬度: 數字
    振幅: 數字
    頻率: 數字
    相位: 數字
    分段數: 整數
Curve WaveProfile(
    double height = 12,
    double width = 1.2,
    double amplitude = 1.5,
    double frequency = 1,
    double phase = 0,
    int segments = 32)

參數

名稱型別預設值說明
高度數字12
寬度數字1.2
振幅數字1.5
頻率數字1
相位數字0
分段數整數32

返回

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

多條波浪輪廓

函數

Creates a row of independently phased wavy profiles translated along X.

簽名
多條波浪輪廓 -> Curve 陣列
    偏移: 數字陣列
    高度: 數字
    寬度: 數字
    振幅: 數字
    相位步長: 數字
    分段數: 整數
Curve[] WaveProfiles(
    double[] offsets,
    double height = 12,
    double width = 0.3,
    double amplitude = 0.8,
    double phaseStep = 0.3,
    int segments = 32)

參數

名稱型別預設值說明
偏移數字陣列—
高度數字12
寬度數字0.3
振幅數字0.8
相位步長數字0.3
分段數整數32

返回

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