元編程參考文件

Weed 平面曲線

36 個節點

本頁內容 36

形心

函數

Computes a closed planar profile's area centroid.

簽名
形心(曲線: Curve, 平面: Plane, 容差: 數字) -> Point3d
Point3d Centroid(
    Curve curve,
    Plane plane,
    double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve—
平面Plane—
容差數字0.001

返回

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

多個形心

函數

Computes the area centroid of each closed planar curve.

簽名
多個形心 -> Point3d 陣列
    曲線: Curve 陣列
    平面: Plane
    容差: 數字
Point3d[] Centroids(
    Curve[] curves,
    Plane plane,
    double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve 陣列—
平面Plane—
容差數字0.001

返回

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

閉合

函數

Adds a straight closing segment to each open curve; closed inputs are copied unchanged.

簽名
閉合(曲線: Curve 陣列, 容差: 數字) -> Curve 陣列
Curve[] Close(Curve[] curves, double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve 陣列—
容差數字0.001

返回

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

曲線集合

函數

Copies a single curve into a list.

簽名
曲線集合(曲線: Curve) -> Curve 陣列
Curve[] Collection(Curve curve)

參數

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

返回

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

差集

函數

Subtracts closed planar curve regions, retaining outer boundaries and holes as separate loops in each region's order.

簽名
差集 -> Curve 陣列
    主體: Curve 陣列
    切割體: Curve 陣列
    平面: Plane
    容差: 數字
Curve[] Difference(
    Curve[] subjects,
    Curve[] cutters,
    Plane plane,
    double tolerance = 0.001)

參數

名稱型別預設值說明
主體Curve 陣列—
切割體Curve 陣列—
平面Plane—
容差數字0.001

返回

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

終點

函數

Returns the curve end point.

簽名
終點(曲線: Curve) -> Point3d
Point3d End(Curve curve)

參數

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

返回

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

端點

函數

Returns every start followed by every end, matching merged endpoint lists.

簽名
端點(曲線: Curve 陣列) -> Point3d 陣列
Point3d[] EndPoints(Curve[] curves)

參數

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

返回

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

多個終點

函數

Returns the end of each curve in source order.

簽名
多個終點(曲線: Curve 陣列) -> Point3d 陣列
Point3d[] Ends(Curve[] curves)

參數

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

返回

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

炸開

函數

Explodes composite curves into their constituent segments, adding each curve's item index to the path.

簽名
炸開(曲線: Curve 的 Cad Tree) -> Curve 的 Cad Tree
CadTree<Curve> Explode(CadTree<Curve> curves)

參數

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

返回

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

升級為資料樹

函數

Copies each profile into its own singleton branch.

簽名
升級為資料樹(曲線: Curve 陣列) -> Curve 的 Cad Tree
CadTree<Curve> Graft(Curve[] curves)

參數

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

返回

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

高度

函數

Returns world Y bounding extents of curves.

簽名
高度(曲線: Curve 陣列) -> 數字陣列
double[] Heights(Curve[] curves)

參數

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

返回

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

交點參數

函數

Returns intersection parameters on the first curve, including both limits of overlapping intervals.

簽名
交點參數(第一個: Curve, 第二個: Curve, 容差: 數字) -> 數字陣列
double[] IntersectionParameters(
    Curve first,
    Curve second,
    double tolerance = 0.001)

參數

名稱型別預設值說明
第一個Curve—
第二個Curve—
容差數字0.001

返回

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

項

函數

Returns one curve per branch, with cyclic indexing so -1 selects the last section.

簽名
項(曲線: Curve 的 Cad Tree, 索引: 整數) -> Curve 陣列
Curve[] Items(CadTree<Curve> curves, int index = -1)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
索引整數-1

返回

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

連線分支

函數

Joins each branch independently and flattens the resulting curves in branch order.

簽名
連線分支(曲線: Curve 的 Cad Tree, 容差: 數字) -> Curve 陣列
Curve[] JoinBranches(
    CadTree<Curve> curves,
    double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
容差數字0.001

返回

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

兩點之間的直線

函數

Creates lines between longest-matched endpoint lists.

簽名
兩點之間的直線 -> Curve 陣列
    起點: Point3d 陣列
    終點: Point3d 陣列
Curve[] LinesBetween(Point3d[] starts, Point3d[] ends)

參數

名稱型別預設值說明
起點Point3d 陣列—
終點Point3d 陣列—

返回

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

分支放樣

函數

Creates one normal cubic loft per branch of ordered section curves.

簽名
分支放樣(截面: Curve 的 Cad Tree) -> Cad Model
CadModel LoftBranches(CadTree<Curve> sections)

參數

名稱型別預設值說明
截面Curve 的 Cad Tree—

返回

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

按參數分支放樣

函數

Lofts every branch at the same explicit section parameters, so common segment endpoints produce coincident patch boundaries.

簽名
按參數分支放樣 -> Cad Model
    截面: Curve 的 Cad Tree
    參數: 數字陣列
CadModel LoftBranchesAtParameters(
    CadTree<Curve> sections,
    double[] parameters)

參數

名稱型別預設值說明
截面Curve 的 Cad Tree—
參數數字陣列—

返回

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

在 X 處鏡像

函數

Mirrors corresponding curves across YZ planes at supplied origins.

簽名
在 X 處鏡像(曲線: Curve 陣列, 原點: Point3d 陣列) -> Curve 陣列
Curve[] MirrorAtX(Curve[] curves, Point3d[] origins)

參數

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

返回

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

鏡像弦

函數

Mirrors each planar curve across the vertical plane through its endpoint chord.

簽名
鏡像弦(曲線: Curve 陣列) -> Curve 陣列
Curve[] MirrorChords(Curve[] curves)

參數

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

返回

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

移動點

函數

Moves every point by a common vector.

簽名
移動點(點: Point3d 陣列, 位移: Vector3d) -> Point3d 陣列
Point3d[] MovePoints(Point3d[] points, Vector3d motion)

參數

名稱型別預設值說明
點Point3d 陣列—
位移Vector3d—

返回

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

移動截面

函數

Moves each branch's curve items along Z by corresponding heights; list lengths must agree.

簽名
移動截面 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    高度: 數字陣列
CadTree<Curve> MoveSections(
    CadTree<Curve> curves,
    double[] heights)

參數

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

返回

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

朝向偏移

函數

Offsets each profile toward a matched side point at every supplied distance; each profile owns one branch of ordered sections.

簽名
朝向偏移 -> Curve 的 Cad Tree
    曲線: Curve 陣列
    側點: Point3d 陣列
    距離: 數字陣列
    平面: Plane
    容差: 數字
CadTree<Curve> OffsetToward(
    Curve[] curves,
    Point3d[] sidePoints,
    double[] distances,
    Plane plane,
    double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve 陣列—
側點Point3d 陣列—
距離數字陣列—
平面Plane—
容差數字0.001

返回

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

按 X 遞增定向

函數

Orients an open curve from the endpoint with the smaller world X coordinate. This makes a join's otherwise unspecified direction explicit.

簽名
按 X 遞增定向(曲線: Curve) -> Curve
Curve OrientIncreasingX(Curve curve)

參數

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

返回

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

平面

函數

Creates independent planar faces from closed profiles.

簽名
平面(曲線: Curve 陣列, 容差: 數字) -> Cad Model
CadModel PlanarFaces(Curve[] curves, double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve 陣列—
容差數字0.001

返回

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

點的 Y

函數

Returns world Y coordinates.

簽名
點的 Y(點: Point3d) -> 數字
double PointY(Point3d point)

參數

名稱型別預設值說明
點Point3d—

返回

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

繞原點旋轉

函數

Rotates copies around corresponding origins and angles using longest-list matching.

簽名
繞原點旋轉 -> Curve 陣列
    曲線: Curve
    原點: Point3d 陣列
    角度: 數字陣列
Curve[] RotateAtOrigins(
    Curve curve,
    Point3d[] origins,
    double[] angles)

參數

名稱型別預設值說明
曲線Curve—
原點Point3d 陣列—
角度數字陣列—

返回

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

縮放

函數

Uniformly scales a curve about a supplied center.

簽名
縮放(曲線: Curve, 中心: Point3d, 係數: 數字) -> Curve
Curve Scale(Curve curve, Point3d center, double factor)

參數

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

返回

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

打散閉合曲線

函數

Splits a closed curve into cyclic pieces; the original seam is joined through unless it is itself a cut.

簽名
打散閉合曲線 -> Curve 陣列
    曲線: Curve
    參數: 數字陣列
    容差: 數字
Curve[] ShatterClosed(
    Curve curve,
    double[] parameters,
    double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve—
參數數字陣列—
容差數字0.001

返回

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

按形心 Y 排序

函數

Sorts closed profiles by their area centroid's world Y coordinate.

簽名
按形心 Y 排序 -> Curve 陣列
    曲線: Curve 陣列
    平面: Plane
    容差: 數字
Curve[] SortCentroidY(
    Curve[] curves,
    Plane plane,
    double tolerance = 0.001)

參數

名稱型別預設值說明
曲線Curve 陣列—
平面Plane—
容差數字0.001

返回

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

按長度排序

函數

Sorts curves by measured arc length, retaining stable order for ties.

簽名
按長度排序(曲線: Curve 陣列) -> Curve 陣列
Curve[] SortLength(Curve[] curves)

參數

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

返回

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

起點

函數

Returns the curve start point.

簽名
起點(曲線: Curve) -> Point3d
Point3d Start(Curve curve)

參數

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

返回

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

多個起點

函數

Returns the start of each curve in source order.

簽名
多個起點(曲線: Curve 陣列) -> Point3d 陣列
Point3d[] Starts(Curve[] curves)

參數

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

返回

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

子列表

函數

Extracts an inclusive interval of list indices with strict bounds.

簽名
子列表 -> Curve 陣列
    曲線: Curve 陣列
    第一個: 整數
    最後一個: 整數
Curve[] Sublist(Curve[] curves, int first = 0, int last = 1)

參數

名稱型別預設值說明
曲線Curve 陣列—
第一個整數0
最後一個整數1

返回

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

轉置截面

函數

Transposes segment items against the final section-path index: {A;B}(i) becomes {A;i}(B). Missing segments are rejected so an incomplete surface cannot appear successful.

簽名
轉置截面(分段數: Curve 的 Cad Tree) -> Curve 的 Cad Tree
CadTree<Curve> TransposeSections(CadTree<Curve> segments)

參數

名稱型別預設值說明
分段數Curve 的 Cad Tree—

返回

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

兩點之間的向量

函數

Constructs vectors between corresponding points using longest-list matching.

簽名
兩點之間的向量 -> Vector3d 陣列
    起點: Point3d 陣列
    終點: Point3d 陣列
Vector3d[] VectorsBetween(Point3d[] starts, Point3d[] ends)

參數

名稱型別預設值說明
起點Point3d 陣列—
終點Point3d 陣列—

返回

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

寬度

函數

Returns world X bounding extents of curves.

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

參數

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

返回

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