元編程參考文件

Weed 幾何

27 個節點

本頁內容 27

幅值

函數

Sets vector length; negative amplitude reverses its direction. Zero vectors cannot be assigned a direction.

簽名
幅值(向量: Vector3d, 長度: 數字) -> Vector3d
Vector3d Amplitude(Vector3d vector, double length)

參數

名稱型別預設值說明
向量Vector3d—
長度數字—

返回

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

圓

函數

Circle on a plane.

簽名
圓(平面: Plane, 半徑: 數字) -> Curve
Curve Circle(Plane plane, double radius)

參數

名稱型別預設值說明
平面Plane—
半徑數字—

返回

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

構造平面

函數

Frame from an origin and two independent direction vectors.

簽名
構造平面(原點: Point3d, X 軸: Vector3d, Y 軸: Vector3d) -> Plane
Plane ConstructPlane(
    Point3d origin,
    Vector3d xAxis,
    Vector3d yAxis)

參數

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

返回

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

距離

函數

Euclidean point distance.

簽名
距離(第一個: Point3d, 第二個: Point3d) -> 數字
double Distance(Point3d first, Point3d second)

參數

名稱型別預設值說明
第一個Point3d—
第二個Point3d—

返回

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

等分曲線

函數

Returns count + 1 equal arc-length samples; closed curves include the repeated seam endpoint.

簽名
等分曲線(曲線: Curve, 數量: 整數) -> Point3d 陣列
Point3d[] DivideCurve(Curve curve, int count = 10)

參數

名稱型別預設值說明
曲線Curve—
數量整數10

返回

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

劃分曲面

函數

Divides an untrimmed surface into (uCount + 1) branches of (vCount + 1) points. UV sampling spans native domains.

簽名
劃分曲面 -> Point3d 的 Cad Tree
    曲面: Surface
    U 向數量: 整數
    V 向數量: 整數
CadTree<Point3d> DivideSurface(
    Surface surface,
    int uCount = 10,
    int vCount = 10)

參數

名稱型別預設值說明
曲面Surface—
U 向數量整數10
V 向數量整數10

返回

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

點積

函數

Vector dot product.

簽名
點積(第一個: Vector3d, 第二個: Vector3d) -> 數字
double Dot(Vector3d first, Vector3d second)

參數

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

返回

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

求曲線上的點

函數

Evaluates the native curve parameter, without silently normalizing its domain.

簽名
求曲線上的點(曲線: Curve, 參數: 數字) -> Point3d
Point3d EvaluateCurve(Curve curve, double parameter)

參數

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

返回

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

求長度處的點

函數

Evaluates arc length from the start. Normalized length is a fraction of total curve length, not a NURBS parameter.

簽名
求長度處的點(曲線: Curve, 長度: 數字, 歸一化: 真否) -> Point3d
Point3d EvaluateLength(
    Curve curve,
    double length,
    bool normalized = true)

參數

名稱型別預設值說明
曲線Curve—
長度數字—
歸一化真否True

返回

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

拉伸

函數

Creates an uncapped extrusion: a surface, open at both ends.

簽名
拉伸(曲線: Curve, 方向: Vector3d) -> Cad Model
CadModel Extrude(Curve curve, Vector3d direction)

參數

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

返回

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

SDL 直線

函數

Line from start, direction and length.

簽名
SDL 直線(起點: Point3d, 方向: Vector3d, 長度: 數字) -> Curve
Curve LineSDL(Point3d start, Vector3d direction, double length)

參數

名稱型別預設值說明
起點Point3d—
方向Vector3d—
長度數字—

返回

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

放樣

函數

Creates an uncapped normal loft through ordered sections.

簽名
放樣(截面: Curve 陣列) -> Cad Model
CadModel Loft(Curve[] sections)

參數

名稱型別預設值說明
截面Curve 陣列—

返回

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

移動曲線

函數

Moves an independently owned curve.

簽名
移動曲線(曲線: Curve, 位移: Vector3d) -> Curve
Curve MoveCurve(Curve curve, Vector3d motion)

參數

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

返回

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

移動點

函數

Moves points using longest-list point/vector matching.

簽名
移動點(點: Point3d 陣列, 向量: Vector3d 陣列) -> Point3d 陣列
Point3d[] MovePoints(Point3d[] points, Vector3d[] vectors)

參數

名稱型別預設值說明
點Point3d 陣列—
向量Vector3d 陣列—

返回

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

點

函數

Constructs a point from finite coordinates.

簽名
點(X: 數字, Y: 數字, Z: 數字) -> Point3d
Point3d Point(double x, double y, double z = 0)

參數

名稱型別預設值說明
X數字—
Y數字—
Z數字0

返回

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

點集

函數

Constructs points using longest-list matching independently in x, y and z.

簽名
點集(X: 數字陣列, Y: 數字陣列, Z: 數字陣列) -> Point3d 陣列
Point3d[] Points(double[] x, double[] y, double[] z)

參數

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

返回

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

極座標點

函數

Creates a polar point sequence, optionally repeating the first point to close it.

簽名
極座標點 -> Point3d 陣列
    角度: 數字陣列
    半徑: 數字陣列
    高度: 數字
    閉合: 真否
Point3d[] PolarPoints(
    double[] angles,
    double[] radii,
    double height = 0,
    bool close = false)

參數

名稱型別預設值說明
角度數字陣列—
半徑數字陣列—
高度數字0
閉合真否False

返回

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

矩形

函數

Polyline rectangle from directed local X and Y domains, without corner fillets.

簽名
矩形(平面: Plane, X: Interval, Y: Interval) -> Curve
Curve Rectangle(Plane plane, Interval x, Interval y)

參數

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

返回

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

旋轉曲線

函數

Rotates a curve in a plane by a radian angle.

簽名
旋轉曲線(曲線: Curve, 角度: 數字, 平面: Plane) -> Curve
Curve RotateCurve(Curve curve, double angle, Plane plane)

參數

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

返回

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

旋轉向量

函數

Rotates a vector around a nonzero axis by a radian angle.

簽名
旋轉向量(向量: Vector3d, 軸: Vector3d, 角度: 數字) -> Vector3d
Vector3d RotateVector(
    Vector3d vector,
    Vector3d axis,
    double angle)

參數

名稱型別預設值說明
向量Vector3d—
軸Vector3d—
角度數字—

返回

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

縮放曲線

函數

Nonuniformly scales a curve relative to a local plane.

簽名
縮放曲線 -> Curve
    曲線: Curve
    平面: Plane
    X: 數字
    Y: 數字
    Z: 數字
Curve ScaleCurve(
    Curve curve,
    Plane plane,
    double x,
    double y,
    double z)

參數

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

返回

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

打散

函數

Splits a curve at native parameters strictly inside its domain.

簽名
打散(曲線: Curve, 參數: 數字陣列) -> Curve 陣列
Curve[] Shatter(Curve curve, double[] parameters)

參數

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

返回

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

X 單位向量

函數

X-axis vector multiplied by factor.

簽名
X 單位向量(係數: 數字) -> Vector3d
Vector3d UnitX(double factor = 1)

參數

名稱型別預設值說明
係數數字1

返回

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

Y 單位向量

函數

Y-axis vector multiplied by factor.

簽名
Y 單位向量(係數: 數字) -> Vector3d
Vector3d UnitY(double factor = 1)

參數

名稱型別預設值說明
係數數字1

返回

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

Z 單位向量

函數

Z-axis vector multiplied by factor.

簽名
Z 單位向量(係數: 數字) -> Vector3d
Vector3d UnitZ(double factor = 1)

參數

名稱型別預設值說明
係數數字1

返回

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

兩點向量

函數

Vector from first to second point, optionally unitized.

簽名
兩點向量 -> Vector3d
    第一個: Point3d
    第二個: Point3d
    單位化: 真否
Vector3d VectorTwoPoints(
    Point3d first,
    Point3d second,
    bool unitize = false)

參數

名稱型別預設值說明
第一個Point3d—
第二個Point3d—
單位化真否False

返回

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

XY 平面

函數

XY plane with the supplied origin.

簽名
XY 平面(原點: Point3d) -> Plane
Plane XYPlane(Point3d origin)

參數

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

返回

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