元編程參考文件

Weed 資料樹幾何

26 個節點

本頁內容 26

平均點

函數

Computes the arithmetic point mean independently per nonempty branch.

簽名
平均點(點: Point3d 的 Cad Tree) -> Point3d 的 Cad Tree
CadTree<Point3d> AveragePoints(CadTree<Point3d> points)

參數

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

返回

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

控制點曲線

函數

Creates one clamped NURBS from each control-point branch; these are control vertices, not interpolated samples.

簽名
控制點曲線 -> Curve 的 Cad Tree
    點: Point3d 的 Cad Tree
    階數: 整數
CadTree<Curve> ControlPointCurves(
    CadTree<Point3d> points,
    int degree = 3)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
階數整數3

返回

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

剔除曲線索引

函數

Removes one curve item per branch, appending the culling operation's item path.

簽名
剔除曲線索引 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    索引: 整數
CadTree<Curve> CullCurveIndex(
    CadTree<Curve> curves,
    int index = 0)

參數

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

返回

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

剔除重複點

函數

Removes points closer than tolerance within each branch, preserving the first representative and its order.

簽名
剔除重複點 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    容差: 數字
CadTree<Point3d> CullDuplicatePoints(
    CadTree<Point3d> points,
    double tolerance = 0.01)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
容差數字0.01

返回

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

展平曲線

函數

Collects curves in numeric branch order for a subsequent explicit loft or other list operation.

簽名
展平曲線(曲線: Curve 的 Cad Tree) -> Curve 陣列
Curve[] FlattenCurves(CadTree<Curve> curves)

參數

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

返回

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

展平點

函數

Collects points in branch order.

簽名
展平點(點: Point3d 的 Cad Tree) -> Point3d 陣列
Point3d[] FlattenPoints(CadTree<Point3d> points)

參數

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

返回

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

移動曲線

函數

Moves matched curves by vectors, returning owned geometry.

簽名
移動曲線 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    向量: Vector3d 的 Cad Tree
CadTree<Curve> MoveCurves(
    CadTree<Curve> curves,
    CadTree<Vector3d> vectors)

參數

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

返回

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

移動點

函數

Moves matched points by vectors.

簽名
移動點 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    向量: Vector3d 的 Cad Tree
CadTree<Point3d> MovePoints(
    CadTree<Point3d> points,
    CadTree<Vector3d> vectors)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
向量Vector3d 的 Cad Tree—

返回

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

平面

函數

Constructs local frames from matched origins and X axes, with a shared independent Y direction.

簽名
平面 -> Plane 的 Cad Tree
    原點: Point3d 的 Cad Tree
    X 軸: Vector3d 的 Cad Tree
    Y 軸: Vector3d
CadTree<Plane> Planes(
    CadTree<Point3d> origins,
    CadTree<Vector3d> xAxes,
    Vector3d yAxis)

參數

名稱型別預設值說明
原點Point3d 的 Cad Tree—
X 軸Vector3d 的 Cad Tree—
Y 軸Vector3d—

返回

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

點分支數

函數

Returns the number of point branches as one scalar.

簽名
點分支數(點: Point3d 的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> PointBranchCount(CadTree<Point3d> points)

參數

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

返回

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

點數

函數

Returns the number of points in each branch.

簽名
點數(點: Point3d 的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> PointCounts(CadTree<Point3d> points)

參數

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

返回

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

點項

函數

Selects one point from each branch, retaining branch order in the flattened output.

簽名
點項 -> Point3d 陣列
    點: Point3d 的 Cad Tree
    索引: 整數
    環繞: 真否
Point3d[] PointItems(
    CadTree<Point3d> points,
    int index = 0,
    bool wrap = true)

參數

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

返回

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

點集

函數

Constructs points with longest item and branch matching across coordinates.

簽名
點集 -> Point3d 的 Cad Tree
    X: 數字的 Cad Tree
    Y: 數字的 Cad Tree
    Z: 數字的 Cad Tree
CadTree<Point3d> Points(
    CadTree<double> x,
    CadTree<double> y,
    CadTree<double> z)

參數

名稱型別預設值說明
X數字的 Cad Tree—
Y數字的 Cad Tree—
Z數字的 Cad Tree—

返回

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

多段線

函數

Creates a polyline per branch, optionally closing it with a final segment.

簽名
多段線(點: Point3d 的 Cad Tree, 閉合: 真否) -> Curve 的 Cad Tree
CadTree<Curve> Polylines(
    CadTree<Point3d> points,
    bool closed = false)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
閉合真否False

返回

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

新增字首點

函數

Prepends a common ancestor index to every point-tree branch.

簽名
新增字首點 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    索引: 整數
CadTree<Point3d> PrefixPoints(
    CadTree<Point3d> points,
    int index = 0)

參數

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

返回

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

矩形

函數

Constructs local rectangles on every frame.

簽名
矩形 -> Curve 的 Cad Tree
    平面: Plane 的 Cad Tree
    X: Interval
    Y: Interval
CadTree<Curve> Rectangles(
    CadTree<Plane> planes,
    Interval x,
    Interval y)

參數

名稱型別預設值說明
平面Plane 的 Cad Tree—
XInterval—
YInterval—

返回

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

旋轉曲線

函數

Rotates matched curves within their local planes.

簽名
旋轉曲線 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    平面: Plane 的 Cad Tree
    角度: 數字
CadTree<Curve> RotateCurves(
    CadTree<Curve> curves,
    CadTree<Plane> planes,
    double angle)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
平面Plane 的 Cad Tree—
角度數字—

返回

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

縮放曲線

函數

Scales matched curves in local X and Y, keeping local Z unchanged.

簽名
縮放曲線 -> Curve 的 Cad Tree
    曲線: Curve 的 Cad Tree
    平面: Plane 的 Cad Tree
    X: 數字的 Cad Tree
    Y: 數字的 Cad Tree
CadTree<Curve> ScaleCurves(
    CadTree<Curve> curves,
    CadTree<Plane> planes,
    CadTree<double> x,
    CadTree<double> y)

參數

名稱型別預設值說明
曲線Curve 的 Cad Tree—
平面Plane 的 Cad Tree—
X數字的 Cad Tree—
Y數字的 Cad Tree—

返回

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

縮放點

函數

Scales points along world axes about matched centers.

簽名
縮放點 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    中心點: Point3d 的 Cad Tree
    X: 數字
    Y: 數字
    Z: 數字
CadTree<Point3d> ScalePoints(
    CadTree<Point3d> points,
    CadTree<Point3d> centers,
    double x = 1,
    double y = 1,
    double z = 1)

參數

名稱型別預設值說明
點Point3d 的 Cad Tree—
中心點Point3d 的 Cad Tree—
X數字1
Y數字1
Z數字1

返回

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

簡化曲線

函數

Removes common leading path indices from a curve tree.

簽名
簡化曲線(曲線: Curve 的 Cad Tree) -> Curve 的 Cad Tree
CadTree<Curve> SimplifyCurves(CadTree<Curve> curves)

參數

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

返回

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

簡化向量

函數

Removes common leading vector-path indices.

簽名
簡化向量(向量: Vector3d 的 Cad Tree) -> Vector3d 的 Cad Tree
CadTree<Vector3d> SimplifyVectors(CadTree<Vector3d> vectors)

參數

名稱型別預設值說明
向量Vector3d 的 Cad Tree—

返回

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

點排序

函數

Sorts point items by corresponding numeric keys independently in each matching branch.

簽名
點排序 -> Point3d 的 Cad Tree
    點: Point3d 的 Cad Tree
    鍵: 數字的 Cad Tree
    降序: 真否
CadTree<Point3d> SortPoints(
    CadTree<Point3d> points,
    CadTree<double> keys,
    bool descending = false)

參數

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

返回

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

X 單位向量

函數

Scales the world X axis per factor, retaining branches.

簽名
X 單位向量(係數: 數字的 Cad Tree) -> Vector3d 的 Cad Tree
CadTree<Vector3d> UnitX(CadTree<double> factors)

參數

名稱型別預設值說明
係數數字的 Cad Tree—

返回

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

Y 單位向量

函數

Scales the world Y axis per factor, retaining branches.

簽名
Y 單位向量(係數: 數字的 Cad Tree) -> Vector3d 的 Cad Tree
CadTree<Vector3d> UnitY(CadTree<double> factors)

參數

名稱型別預設值說明
係數數字的 Cad Tree—

返回

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

Z 單位向量

函數

Scales the world Z axis per factor, retaining branches.

簽名
Z 單位向量(係數: 數字的 Cad Tree) -> Vector3d 的 Cad Tree
CadTree<Vector3d> UnitZ(CadTree<double> factors)

參數

名稱型別預設值說明
係數數字的 Cad Tree—

返回

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

Y 座標

函數

Extracts world Y coordinates without changing point-tree paths.

簽名
Y 座標(點: Point3d 的 Cad Tree) -> 數字的 Cad Tree
CadTree<double> YCoordinates(CadTree<Point3d> points)

參數

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

返回

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