元編程參考文件

CAD 曲線

34 個節點

本頁內容 34

圓弧

函數

Circular arc, in radians, with end angle greater than start angle and a sweep no greater than one turn.

簽名
圓弧 -> Curve
    平面: Plane
    半徑: 數字
    起始角度: 數字
    結束角度: 數字
Curve Arc(
    Plane plane,
    double radius,
    double startAngle,
    double endAngle)

參數

名稱型別預設值說明
平面Plane—
半徑數字—
起始角度數字—
結束角度數字—

返回

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

面積

函數

Area of a closed planar boundary, before subtracting holes.

簽名
面積(曲線: Curve, 平面: Plane, 容差: 數字) -> 數字
double Area(Curve curve, Plane plane, double tolerance = 1E-06)

參數

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

返回

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

混接

函數

Creates a tangent or curvature continuous connector between the end of the first and start of the second curve.

簽名
混接 -> Curve
    第一個: Curve
    第二個: Curve
    連續性: Blend Continuity
    第一處凸度: 數字
    第二處凸度: 數字
Curve Blend(
    Curve first,
    Curve second,
    BlendContinuity continuity = BlendContinuity.Tangency,
    double bulgeFirst = 1,
    double bulgeSecond = 1)

參數

名稱型別預設值說明
第一個Curve—
第二個Curve—
連續性Blend Continuity相切連續
第一處凸度數字1
第二處凸度數字1

返回

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

布林區域

函數

Planar region boolean retaining outer/hole relationships. Open or noncoplanar inputs are rejected instead of being mistaken for an empty result.

簽名
布林區域 -> Curve Region 陣列
    第一個: Curve 陣列
    第二個: Curve 陣列
    平面: Plane
    運算: Curve Boolean Operation
    容差: 數字
CurveRegion[] BooleanRegions(
    Curve[] first,
    Curve[] second,
    Plane plane,
    CurveBooleanOperation operation,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
第一個Curve 陣列—
第二個Curve 陣列—
平面Plane—
運算Curve Boolean Operation—
容差數字1E-06

返回

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

圓

函數

Circle in a local frame. Radius must be finite and positive.

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

參數

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

返回

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

最近點

函數

Closest point on the curve.

簽名
最近點(曲線: Curve, 點: Point3d) -> Point3d
Point3d ClosestPoint(Curve curve, Point3d point)

參數

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

返回

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

控制點曲線

函數

NURBS from control points with optional rational weights.

簽名
控制點曲線 -> Curve
    點: Point3d 陣列
    階數: 整數
    權重: 數字陣列
Curve ControlPointCurve(
    Point3d[] points,
    int degree = 3,
    double[] weights)

參數

名稱型別預設值說明
點Point3d 陣列—
階數整數3
權重數字陣列—

返回

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

曲率

函數

Curvature vector at a normalized parameter.

簽名
曲率(曲線: Curve, 參數: 數字) -> Vector3d
Vector3d CurvatureAt(Curve curve, double parameter)

參數

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

返回

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

按長度等分

函數

Returns count+1 points dividing the curve into equal arc-length segments, including both endpoints.

簽名
按長度等分(曲線: Curve, 數量: 整數) -> Point3d 陣列
Point3d[] DivideLength(Curve curve, int count)

參數

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

返回

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

按參數等分

函數

Returns count+1 samples equally spaced in parameter space, including both endpoints; this is not equal arc-length division.

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

參數

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

返回

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

橢圓

函數

Elliptical curve in a local frame.

簽名
橢圓(平面: Plane, X 半徑: 數字, Y 半徑: 數字) -> Curve
Curve Ellipse(Plane plane, double radiusX, double radiusY)

參數

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

返回

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

延伸

函數

Extends one or both ends by model length using the selected continuation style.

簽名
延伸 -> Curve
    曲線: Curve
    終點: Curve End
    長度: 數字
    樣式: Extend Style
Curve Extend(
    Curve curve,
    CurveEnd end,
    double length,
    ExtendStyle style = ExtendStyle.Smooth)

參數

名稱型別預設值說明
曲線Curve—
終點Curve End—
長度數字—
樣式Extend Style平滑

返回

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

標架

函數

Creates a local frame from an origin and nonzero normal.

簽名
標架(原點: Point3d, 法向: Vector3d) -> Plane
Plane Frame(Point3d origin, Vector3d normal)

參數

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

返回

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

多個標架

函數

Rotation minimizing frames at equal arc-length stations, suitable for orienting repeated components.

簽名
多個標架(曲線: Curve, 分段數: 整數) -> Plane 陣列
Plane[] Frames(Curve curve, int segments)

參數

名稱型別預設值說明
曲線Curve—
分段數整數—

返回

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

插值曲線

函數

NURBS interpolant through the supplied points. Degree is at least one and less than the point count.

簽名
插值曲線(點: Point3d 陣列, 階數: 整數) -> Curve
Curve Interpolate(Point3d[] points, int degree = 3)

參數

名稱型別預設值說明
點Point3d 陣列—
階數整數3

返回

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

交點

函數

Curve intersections including overlap intervals; event parameters use each curve's native domain.

簽名
交點 -> Curve Intersection Event 陣列
    第一個: Curve
    第二個: Curve
    容差: 數字
CurveIntersectionEvent[] Intersections(
    Curve first,
    Curve second,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
第一個Curve—
第二個Curve—
容差數字1E-06

返回

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

連線

函數

Joins curves whose endpoints meet within tolerance; disconnected chains remain separate.

簽名
連線(曲線: Curve 陣列, 容差: 數字) -> Curve 陣列
Curve[] Join(Curve[] curves, double tolerance = 1E-06)

參數

名稱型別預設值說明
曲線Curve 陣列—
容差數字1E-06

返回

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

長度

函數

Curve length in model units.

簽名
長度(曲線: Curve) -> 數字
double Length(Curve curve)

參數

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

返回

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

直線

函數

Line between distinct points.

簽名
直線(起點: Point3d, 終點: Point3d) -> Curve
Curve Line(Point3d start, Point3d end)

參數

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

返回

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

偏移

函數

Offsets a planar curve by signed distance; reports failure when the kernel cannot construct the offset.

簽名
偏移(曲線: Curve, 平面: Plane, 距離: 數字, 容差: 數字) -> Curve
Curve Offset(
    Curve curve,
    Plane plane,
    double distance,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
曲線Curve—
平面Plane—
距離數字—
容差數字1E-06

返回

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

尖角偏移

函數

Offsets a planar line/arc chain with sharp corners by intersecting the exact extended offset primitives. Positive distance lies to the left of travel. Collapsed or disconnected offsets report failure.

簽名
尖角偏移 -> Curve
    曲線: Curve
    平面: Plane
    距離: 數字
    容差: 數字
Curve OffsetSharp(
    Curve curve,
    Plane plane,
    double distance,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
曲線Curve—
平面Plane—
距離數字—
容差數字1E-06

返回

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

曲線對

函數

Collects two independently copied curves in order, for loft sections or region inputs in visual graphs.

簽名
曲線對(第一個: Curve, 第二個: Curve) -> Curve 陣列
Curve[] Pair(Curve first, Curve second)

參數

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

返回

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

點

函數

Creates a finite point.

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

參數

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

返回

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

曲線上的點

函數

Evaluates a curve at a normalized parameter from zero through one.

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

參數

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

返回

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

多段線

函數

Polyline through copied points, optionally closing the last-to-first segment.

簽名
多段線(點: Point3d 陣列, 閉合: 真否) -> Curve
Curve Polyline(Point3d[] points, bool closed = false)

參數

名稱型別預設值說明
點Point3d 陣列—
閉合真否False

返回

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

投影到平面

函數

Orthogonally projects onto a plane; a collapsed projection reports failure.

簽名
投影到平面(曲線: Curve, 平面: Plane, 容差: 數字) -> Curve
Curve ProjectToPlane(
    Curve curve,
    Plane plane,
    double tolerance = 1E-06)

參數

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

返回

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

重建

函數

Rebuilds a curve to a specified control point count and degree; this is an approximation.

簽名
重建(曲線: Curve, 控制點數: 整數, 階數: 整數) -> Curve
Curve Rebuild(
    Curve curve,
    int controlPointCount,
    int degree = 3)

參數

名稱型別預設值說明
曲線Curve—
控制點數整數—
階數整數3

返回

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

矩形

函數

Rectangle in a local frame, beginning at its origin and extending in positive local X and Y.

簽名
矩形(平面: Plane, 寬度: 數字, 高度: 數字) -> Curve
Curve Rectangle(Plane plane, double width, double height)

參數

名稱型別預設值說明
平面Plane—
寬度數字—
高度數字—

返回

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

反轉

函數

Reverses the curve without modifying its input.

簽名
反轉(曲線: Curve) -> Curve
Curve Reverse(Curve curve)

參數

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

返回

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

分割

函數

Splits at normalized parameters strictly between zero and one, retaining all pieces.

簽名
分割(曲線: Curve, 參數: 數字陣列) -> Curve 陣列
Curve[] Split(Curve curve, double[] parameters)

參數

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

返回

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

切線

函數

Unit tangent at a normalized parameter.

簽名
切線(曲線: Curve, 參數: 數字) -> Vector3d
Vector3d TangentAt(Curve curve, double parameter)

參數

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

返回

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

變換後

函數

Returns a transformed copy of a curve.

簽名
變換後(曲線: Curve, 變換: Transform) -> Curve
Curve Transformed(Curve curve, Transform transform)

參數

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

返回

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

修剪

函數

Extracts the normalized interval [start,end] from a curve.

簽名
修剪(曲線: Curve, 起點: 數字, 終點: 數字) -> Curve
Curve Trim(Curve curve, double start, double end)

參數

名稱型別預設值說明
曲線Curve—
起點數字—
終點數字—

返回

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

向量

函數

Creates a finite vector.

簽名
向量(X: 數字, Y: 數字, Z: 數字) -> Vector3d
Vector3d Vector(double x, double y, double z)

參數

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

返回

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