元編程參考文件

CAD 建模

79 個節點

本頁內容 79

面積

函數

Sums body surface areas in square model units, including interior faces of unfused groups.

簽名
面積(模型: Cad Model) -> 數字
double Area(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—

返回

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

裝配

函數

Collects two models as separate assembly bodies. Its group is both.

簽名
裝配 -> Cad Model
    第一個: Cad Model
    第二個: Cad Model
    名稱: 文字
CadModel Assemble(
    CadModel first,
    CadModel second,
    string name = "")

參數

名稱型別預設值說明
第一個Cad Model—One model.
第二個Cad Model—The other.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

實體

函數

Returns each body as an independently owned model for assembly manipulation.

簽名
實體(模型: Cad Model) -> Cad Model 陣列
CadModel[] Bodies(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—

返回

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

包圍盒

函數

Returns combined bounds of trimmed geometry, or BoundingBox.Empty for an empty model.

簽名
包圍盒(模型: Cad Model) -> Bounding Box
BoundingBox Bounds(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—

返回

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

長方體

函數

Box with a minimum corner at the origin, or centered on it when requested. Dimensions must exceed tolerance. Its groups: the whole box, and its sides "top", "bottom", "left", "right", "front" and "back", facing +Z, -Z, -X, +X, -Y and +Y.

簽名
長方體 -> Cad Model
    寬度: 數字
    深度: 數字
    高度: 數字
    置中: 真否
    容差: 數字
    名稱: 文字
CadModel Box(
    double width,
    double depth,
    double height,
    bool centered = false,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
寬度數字—Along X.
深度數字—Along Y.
高度數字—Along Z.
置中真否FalseCentered on the origin rather than cornered on it.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

封口

函數

Caps planar openings. Closed solids pass through unchanged; an open body that cannot be capped reports failure. Its groups: everything it gave, and "caps", the faces it closed the openings with.

簽名
封口(模型: Cad Model, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel Cap(
    CadModel model,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The open bodies.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

倒角

函數

在一個實體上對文字描述所選取的邊倒斜角,在其相交的兩個面上各退回同一距離。

簽名
倒角 -> Cad Model
    模型: Cad Model
    邊: 文字
    距離: 數字
    容差: 數字
    名稱: 文字
CadModel Chamfer(
    CadModel model,
    string edges,
    double distance,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—實體,單個形體。
邊文字—哪些邊,用文字描述:例如 "edges parallel to Z"(平行於 Z 的邊)、"vertical edges"(豎直的邊)、"circular edges"(圓形的邊)、"edges of the top face"(頂面的邊)、"all edges except concave edges"(除凹邊外的所有邊)。
距離數字—每條邊在其兩個面上各退回的距離,模型單位。
容差數字1E-06模型的容差,模型單位。
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

著色

函數

過載 1/2

簽名
著色(模型: Cad Model, 顏色: 顏色, 名稱: 文字) -> Cad Model
CadModel Color(
    CadModel model,
    ColorElement color,
    string name = "")

Paints every face of the bodies, OpenSCAD's color(c): a face keeps its colour through whatever is done to it after - a union keeps each solid's colours, a cut face takes the colour of the cutter it came from, as OpenSCAD's preview shows them, and the faces a fillet or a shell makes take the colour most of the body is. A colour painted over another replaces it, as OpenSCAD's outer color() does. The colours go out to STEP and 3MF (Parametric.CadExport) and show in the 3D view. Its group is everything it painted.

參數

名稱型別預設值說明
模型Cad Model—The bodies.
顏色顏色—The colour, its alpha how opaque.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

結果Cad Model

過載 2/2

簽名
按名稱著色 -> Cad Model
    模型: Cad Model
    顏色: 文字
    不透明度: 數字
    名稱: 文字
CadModel Color(
    CadModel model,
    string color,
    double alpha = 1,
    string name = "")

Paints every face of the bodies a colour written as OpenSCAD writes one: color("red"), color("#ff8000"), color("SteelBlue", 0.5) (see Cad.ColorOf and Cad.Color).

參數

名稱型別預設值說明
模型Cad Model—The bodies.
顏色文字—顏色的名稱,如 CSS 和 OpenSCAD 所稱,例如 "red"、"SteelBlue";或十六進位制程式碼 "#rgb"、"#rgba"、"#rrggbb"、"#rrggbbaa"。
不透明度數字1How opaque, from 0 to 1, times any alpha the text gives.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

顏色

函數

A colour written as OpenSCAD writes one: a name CSS and OpenSCAD both know, case aside ("red", "SteelBlue"), or a hex code "#rgb", "#rgba", "#rrggbb" or "#rrggbbaa".

簽名
顏色(顏色: 文字, 不透明度: 數字) -> 顏色
ColorElement ColorOf(string color, double alpha = 1)

參數

名稱型別預設值說明
顏色文字—顏色的名稱,如 CSS 和 OpenSCAD 所稱,例如 "red"、"SteelBlue";或十六進位制程式碼 "#rgb"、"#rgba"、"#rrggbb"、"#rrggbbaa"。
不透明度數字1How opaque, from 0 to 1, times any alpha the text gives.

返回

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

RGB 顏色

函數

A colour from its red, green and blue, each from 0 to 1, as OpenSCAD's color([r, g, b, a]) gives one.

簽名
RGB 顏色(紅: 數字, 綠: 數字, 藍: 數字, 不透明度: 數字) -> 顏色
ColorElement ColorRgb(
    double red,
    double green,
    double blue,
    double alpha = 1)

參數

名稱型別預設值說明
紅數字—Red, from 0 to 1.
綠數字—Green, from 0 to 1.
藍數字—Blue, from 0 to 1.
不透明度數字1How opaque, from 0 to 1.

返回

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

模型顏色

函數

The colours a model's faces are painted, each once, in the order its bodies and faces first show them; empty for a model none of whose faces is painted.

簽名
模型顏色(模型: Cad Model) -> 顏色陣列
ColorElement[] Colors(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—The bodies.

返回

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

圓錐體

函數

Capped cone with its base at Z=0 and apex on positive Z. Its groups: the whole cone, "bottom", its flat base, and "side", its slope.

簽名
圓錐體 -> Cad Model
    半徑: 數字
    高度: 數字
    容差: 數字
    名稱: 文字
CadModel Cone(
    double radius,
    double height,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
半徑數字—Its base's radius.
高度數字—Its height, along Z.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

包含點

函數

Tests whether a point is contained by any solid in the model.

簽名
包含點 -> 真否
    模型: Cad Model
    點: Point3d
    嚴格在內部: 真否
    容差: 數字
bool Contains(
    CadModel model,
    Point3d point,
    bool strictlyInside = false,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
模型Cad Model—
點Point3d—
嚴格在內部真否False
容差數字1E-06

返回

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

圓柱體

函數

Capped cylinder along positive Z, base at Z=0 or centered in height. Its groups: the whole cylinder, "top" and "bottom", its flat ends, and "side", its round face.

簽名
圓柱體 -> Cad Model
    半徑: 數字
    高度: 數字
    置中: 真否
    容差: 數字
    名稱: 文字
CadModel Cylinder(
    double radius,
    double height,
    bool centered = false,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
半徑數字—Its radius.
高度數字—Its height, along Z.
置中真否FalseCentered on the origin in height rather than standing on it.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

差集

函數

Subtracts the union of every cutter body from the union of subject bodies. All disconnected output pieces are preserved. Its groups: everything it gave, "seams", the edges it made where the cut meets the subject, and "cut", the faces the cutters left - a hole's walls, a slot's floor.

簽名
差集 -> Cad Model
    主體: Cad Model
    切割體: Cad Model 陣列
    容差: 數字
    名稱: 文字
CadModel Difference(
    CadModel subject,
    CadModel[] cutters,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
主體Cad Model—What is cut.
切割體Cad Model 陣列—What cuts it.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

拔模

函數

將文字描述在實體上選取的平面繞其與中性面的交線傾斜一個角度(弧度)——模具的拔模:正角度使零件離開中性面處變窄。

簽名
拔模 -> Cad Model
    模型: Cad Model
    面: 文字
    角度: 數字
    中性面: Plane
    容差: 數字
    名稱: 文字
CadModel Draft(
    CadModel model,
    string faces,
    double angle,
    Plane neutralPlane,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—實體,單個形體。
面文字—哪些面,用文字描述:例如 "the front face"(前面)、"faces facing front and faces facing back"(朝前的面與朝後的面)。
角度數字—每個面傾斜的角度,弧度。
中性面Plane—面保持不動之處所在的平面;其法向即零件出模的方向。
容差數字1E-06模型的容差,模型單位。
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

邊

函數

每個形體上文字描述所選取的邊的精確曲線——未指定時為全部——按形體與邊的順序:同樣的文字交給圓角或倒角時將處理的邊,可先在此檢視。

簽名
邊(模型: Cad Model, 哪些邊: 文字) -> Curve 陣列
Curve[] Edges(CadModel model, string which = "all edges")

參數

名稱型別預設值說明
模型Cad Model—模型,可含任意多個形體。
哪些邊文字all edges哪些邊,用文字描述:例如 "edges parallel to Z"(平行於 Z 的邊)、"vertical edges"(豎直的邊)、"circular edges"(圓形的邊)、"edges of the top face"(頂面的邊)、"all edges except concave edges"(除凹邊外的所有邊)。

返回

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

空模型

函數

A successful collection with no bodies; identity for union and difference tools.

簽名
空模型() -> Cad Model
CadModel Empty()

返回

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

求值

函數

Explicitly evaluates a graph value so its diagnostic result can be inspected in a node.

簽名
求值(模型: Cad Model) -> Cad Evaluation
CadEvaluation Evaluate(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—

返回

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

拉伸

函數

Extrudes a copied planar profile with optional hole loops. Capped closed profiles produce solids; uncapped profiles produce sheets. Its groups: the whole extrusion, "start", the cap where the profile was, "end", the cap it was carried to, and "sides", every other face - the holes' walls among them.

簽名
拉伸 -> Cad Model
    輪廓: Curve
    方向: Vector3d
    封閉端面: 真否
    孔洞: Curve 陣列
    容差: 數字
    名稱: 文字
CadModel Extrude(
    Curve profile,
    Vector3d direction,
    bool capped = true,
    Curve[] holes,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
輪廓Curve—The closed or open profile, in a plane.
方向Vector3d—Which way, and how far.
封閉端面真否TrueWhether a closed profile's ends are capped into a solid.
孔洞Curve 陣列—Closed loops inside the profile, cut through.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

拉伸面

函數

將文字描述在實體上選取的那一個面沿其外法線推拉一段距離:向外為加料,負距離為切入。

簽名
拉伸面 -> Cad Model
    模型: Cad Model
    面: 文字
    距離: 數字
    容差: 數字
    名稱: 文字
CadModel ExtrudeFace(
    CadModel model,
    string face,
    double distance,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—實體,單個形體。
面文字—哪個面,用文字描述:例如 "the top face"(頂面)、"the largest face"(最大的面)。
距離數字—距離,模型單位:向外為加料,負值為切入。
容差數字1E-06模型的容差,模型單位。
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

拉伸區域

函數

Extrudes planar boolean regions, preserving each region's holes. Its groups: the whole extrusion, "start", the caps where the regions were, "end", the caps they were carried to, and "sides", every other face.

簽名
拉伸區域 -> Cad Model
    區域: Curve Region 陣列
    方向: Vector3d
    容差: 數字
    名稱: 文字
CadModel ExtrudeRegions(
    CurveRegion[] regions,
    Vector3d direction,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
區域Curve Region 陣列—The regions, in one plane.
方向Vector3d—Which way, and how far.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

面的顏色

函數

The colour each face of one body is painted, by face, or null for a face never painted.

簽名
面的顏色(模型: Cad Model, 實體: 整數) -> 可選顏色陣列
ColorElement?[] FaceColors(CadModel model, int body = 0)

參數

名稱型別預設值說明
模型Cad Model—The bodies.
實體整數0Which body, counted from 0.

返回

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

面

函數

每個形體上文字描述所選取的面——未指定時為全部——各為一張獨立的片體,按形體與面的順序,保留其精確曲面、孔與修剪:同樣的文字交給抽殼或拔模時將處理的面,可先在此檢視。

簽名
面(模型: Cad Model, 哪些面: 文字) -> Cad Model 陣列
CadModel[] Faces(CadModel model, string which = "all faces")

參數

名稱型別預設值說明
模型Cad Model—模型,可含任意多個形體。
哪些面文字all faces哪些面,用文字描述:例如 "the top face"(頂面)、"faces facing up"(朝上的面)、"cylindrical faces"(圓柱面)。

返回

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

多面球

函數

OpenSCAD's faceted sphere, sphere(r, $fn = segments): rings of corners at (i + ½)·180°/rings from the top, rings being half the segments rounded up, each ring's first corner over +X; flat polygons close the top and the bottom and flat quadrilaterals join the rings. The exact sphere is Cad.Sphere. Its group is the solid.

簽名
多面球 -> Cad Model
    半徑: 數字
    分段數: 整數
    容差: 數字
    名稱: 文字
CadModel FacetedSphere(
    double radius,
    int segments,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
半徑數字—The radius the corners lie on.
分段數整數—The corners round each ring, at least three: OpenSCAD's $fn, or Cad2D.Fragments of the radius.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

圓角

函數

在一個實體上,用給定半徑的滾球對文字描述所選取的邊倒圓角,例如 "edges parallel to Z"、"edges of the top face"、"convex edges"。與所選邊平滑相接的邊一併倒圓。

簽名
圓角 -> Cad Model
    模型: Cad Model
    邊: 文字
    半徑: 數字
    容差: 數字
    名稱: 文字
CadModel Fillet(
    CadModel model,
    string edges,
    double radius,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—實體,單個形體。
邊文字—哪些邊,用文字描述:例如 "edges parallel to Z"(平行於 Z 的邊)、"vertical edges"(豎直的邊)、"circular edges"(圓形的邊)、"edges of the top face"(頂面的邊)、"all edges except concave edges"(除凹邊外的所有邊)。
半徑數字—滾球的半徑,模型單位。
容差數字1E-06模型的容差,模型單位。
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

結果Cad Model

備註

Round 26: picked by what they are, or by the groups the operations before gave them, rather than by index (Parametric.CadSelection), so a fillet keeps rounding the same edges after an edit upstream renumbers the body's edges.

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

由實體建立

函數

Imports independently owned copies of exact kernel geometry. Subsequent edits to the supplied B-reps cannot change this model.

簽名
由實體建立(實體: Brep 陣列) -> Cad Model
CadModel FromBreps(params Brep[] breps)

參數

名稱型別預設值說明
實體Brep 陣列—

返回

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

由曲面建立

函數

Creates an open B-rep from a copied surface. Solid-only operations report failure on open geometry. Its group is the sheet.

簽名
由曲面建立(曲面: Surface, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel FromSurface(
    Surface surface,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
曲面Surface—The surface.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

圓臺

函數

A cone cut off square to its axis, standing on Z = 0 or centred on it - OpenSCAD's cylinder(h, r1, r2, center): its bottom radius and its top radius may differ, either may be zero for a point, and equal they make a cylinder. Given three or more segments it is OpenSCAD's faceted one, a frustum of a regular pyramid with a corner on +X ($fn = segments); otherwise its surfaces are exact. Its groups: the whole frustum, "top" and "bottom", its flat ends, and "side", every other face.

簽名
圓臺 -> Cad Model
    底面半徑: 數字
    頂面半徑: 數字
    高度: 數字
    置中: 真否
    分段數: 整數
    容差: 數字
    名稱: 文字
CadModel Frustum(
    double bottomRadius,
    double topRadius,
    double height,
    bool centered = false,
    int segments = 0,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
底面半徑數字—The radius at Z = 0 (or at the bottom when centred).
頂面半徑數字—The radius at the top.
高度數字—Its height, along Z.
置中真否FalseCentred on the origin in height rather than standing on it.
分段數整數0Zero for exact circles, or the number of corners of OpenSCAD's faceted one (at least three).
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

熔合

函數

Set union of two models, retaining disconnected output bodies. Its groups: everything it gave, and "seams", the edges it made where the two cross.

簽名
熔合 -> Cad Model
    第一個: Cad Model
    第二個: Cad Model
    容差: 數字
    名稱: 文字
CadModel Fuse(
    CadModel first,
    CadModel second,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
第一個Cad Model—One model.
第二個Cad Model—The other.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

編組

函數

Collects models without fusing touching or overlapping bodies. Arrays are copied when the node is created.

簽名
編組(模型: Cad Model 陣列) -> Cad Model
CadModel Group(params CadModel[] models)

參數

名稱型別預設值說明
模型Cad Model 陣列—

返回

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

凸包

函數

The convex hull of solids, OpenSCAD's hull(): the smallest convex solid holding them all. Exact where the solids allow it: solids of flat faces give the exact polyhedron of their corners, and solids standing upright between the same two heights - cylinders and prisms side by side, OpenSCAD's rounded plate - give the exact extrusion of the flat hull of their footprint. Other curved solids give the hull of their tessellation, a polyhedron within Chord of the true hull, and the result says so in its warnings. Its group is the hull.

簽名
凸包 -> Cad Model
    模型: Cad Model 陣列
    弦高: 數字
    容差: 數字
    名稱: 文字
CadModel Hull(
    CadModel[] models,
    double chord = 0,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model 陣列—The solids.
弦高數字0How far the tessellation of curved solids may stray from them, in model units; zero for a thousandth of the solids' size.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

點的凸包

函數

The convex polyhedron of points: OpenSCAD's hull of points (the corners of tiny cubes, say), exact, its corners the given points. Its group is the hull.

簽名
點的凸包(點: Point3d 陣列, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel HullOfPoints(
    Point3d[] points,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
點Point3d 陣列—At least four points not in one plane.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

交集

函數

Intersection of two body sets. Disjoint sets succeed with empty output. Its groups: everything it gave, and "seams", the edges it made where the two cross.

簽名
交集 -> Cad Model
    左側: Cad Model
    右側: Cad Model
    容差: 數字
    名稱: 文字
CadModel Intersection(
    CadModel left,
    CadModel right,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
左側Cad Model—One set.
右側Cad Model—The other.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

合併

函數

Joins coincident naked edges of open B-reps; does not boolean fuse overlapping solids. Its group is everything it gave.

簽名
合併(模型: Cad Model 陣列, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel Join(
    CadModel[] models,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model 陣列—The sheets.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

線性陣列

函數

Copies the model count times, including the original at index zero, without fusing bodies. A zero count returns empty. Each copy keeps the groups of what it copies, so "Boss top" is the top of every copy; its own group is all the copies.

簽名
線性陣列 -> Cad Model
    模型: Cad Model
    數量: 整數
    步長: Vector3d
    名稱: 文字
CadModel LinearArray(
    CadModel model,
    int count,
    Vector3d step,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
數量整數—How many, the original among them.
步長Vector3d—How far each copy is from the one before.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

線性拉伸

函數

A flat shape carried up the Z axis into a solid, OpenSCAD's linear_extrude(height, center, twist, scale): as it rises the shape turns about the Z axis by up to Twist and is scaled about it along X and Y up to Scale X and Scale Y, turned first and then scaled. Without a twist the solid is exact; a twist's sides are fitted to the tolerance, since no exact surface makes them. Its groups: the whole extrusion, "start", the caps at the bottom, "end", the caps at the top, and "sides", every other face.

簽名
線性拉伸 -> Cad Model
    形狀: Cad Shape
    高度: 數字
    置中: 真否
    扭轉: 數字
    X 向縮放: 數字
    Y 向縮放: 數字
    容差: 數字
    名稱: 文字
CadModel LinearExtrude(
    CadShape shape,
    double height,
    bool centered = false,
    double twist = 0,
    double scaleX = 1,
    double scaleY = 1,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
形狀Cad Shape—The shape, in the XY plane.
高度數字—How high, in model units.
置中真否FalseCentred on Z = 0 in height rather than standing on it.
扭轉數字0How far the top is turned, in radians, counter-clockwise seen from +Z.
X 向縮放數字1The top's scale along X: 1 keeps the shape's size, 0 (with Scale Y) closes it at a point.
Y 向縮放數字1The top's scale along Y.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

結果Cad Model

備註

OpenSCAD's twist is in degrees and turns clockwise seen from above; here it is in radians and counter-clockwise, so OpenSCAD's twist = 90 is -π/2. OpenSCAD's slices only set how finely its mesh follows the twist and have nothing to set here. Both scales zero close each region at an apex on the axis, a pyramid or a cone.

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

放樣

函數

Lofts ordered, copied cross-sections. Sections must have compatible topology and orientation. Its group is the loft.

簽名
放樣 -> Cad Model
    截面: Curve 陣列
    封閉端面: 真否
    型別: Loft Type
    容差: 數字
    名稱: 文字
CadModel Loft(
    Curve[] sections,
    bool capped = true,
    LoftType type = LoftType.Normal,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
截面Curve 陣列—The sections, in order.
封閉端面真否TrueWhether closed end sections are capped into a solid.
型別Loft Type正常How the surface runs between the sections.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

閔可夫斯基和

函數

The Minkowski sum of solids, OpenSCAD's minkowski(): every point of one added to every point of the next. Exact where an exact sum is a solid the kernel makes. A solid plus a ball - OpenSCAD's rounded cube - is the solid offset by the radius with its outside edges rounded by it, checked against the definition at points all over it. Two solids standing upright between two heights, a cube and a cylinder, are the extrusion of the flat sum of their cross-sections. Two polyhedra give their exact polyhedral sum. Other curved solids are tessellated within Chord first, as OpenSCAD facets every curved solid, and the result says so in its warnings. Its group is the sum.

簽名
閔可夫斯基和 -> Cad Model
    模型: Cad Model 陣列
    弦高: 數字
    容差: 數字
    名稱: 文字
CadModel Minkowski(
    CadModel[] models,
    double chord = 0,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model 陣列—The solids, summed in turn.
弦高數字0How far the tessellation of curved solids may stray from them, in model units; zero for a thousandth of their size.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

鏡像

函數

Mirrors in a plane. Its group is everything it mirrored.

簽名
鏡像(模型: Cad Model, 平面: Plane, 名稱: 文字) -> Cad Model
CadModel Mirror(CadModel model, Plane plane, string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
平面Plane—The mirror's plane.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

移動面

函數

將文字描述在實體上選取的那一個平面按 X、Y、Z 移動,周圍的面隨之調整:把一面牆加厚,或把一級臺階抬高。

簽名
移動面 -> Cad Model
    模型: Cad Model
    面: 文字
    X: 數字
    Y: 數字
    Z: 數字
    容差: 數字
    名稱: 文字
CadModel MoveFace(
    CadModel model,
    string face,
    double x,
    double y,
    double z,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—實體,單個形體。
面文字—哪個面,用文字描述:例如 "the right face"(右面)、"the top face"(頂面)。
X數字—沿 X 移動的距離,模型單位。
Y數字—沿 Y 移動的距離。
Z數字—沿 Z 移動的距離。
容差數字1E-06模型的容差,模型單位。
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

偏移

函數

Offsets a single closed solid without changing its topology. Unsupported topology changes produce a failed evaluation. Its group is everything it gave.

簽名
偏移 -> Cad Model
    模型: Cad Model
    距離: 數字
    容差: 數字
    名稱: 文字
CadModel Offset(
    CadModel model,
    double distance,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The solid, one body.
距離數字—How far, outward, in the model's units.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

定向

函數

Orients a model between local frames without scaling. Its group is everything it moved.

簽名
定向 -> Cad Model
    模型: Cad Model
    起點: Plane
    終點: Plane
    名稱: 文字
CadModel Orient(
    CadModel model,
    Plane from,
    Plane to,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
起點Plane—The frame they are in.
終點Plane—The frame they go to.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

選取邊

函數

從列表中選擇哪些邊,而不必書寫:得到圓角或倒角的引腳所讀的那段文字。填寫"其中"時,在某個組的邊之中選取,或選取某些面的邊。

簽名
選取邊(哪些邊: Cad Edges, 其中: 文字) -> 文字
string PickEdges(CadEdges which = CadEdges.All, string of = "")

參數

名稱型別預設值說明
哪些邊Cad Edges所有邊要選取的邊。
其中文字—在什麼之中:組的名稱,例如 "Boss top";或選取面的文字,例如 "the top face",即圍成這些面的邊。留空則為整個實體。

返回

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

選取面

函數

從列表中選擇哪些面,而不必書寫:得到圓角、抽殼或拔模的引腳所讀的那段文字。填寫"其中"時,在某個組的面之中選取,或選取某些邊所圍的面。

簽名
選取面(哪些面: Cad Faces, 其中: 文字) -> 文字
string PickFaces(CadFaces which = CadFaces.Top, string of = "")

參數

名稱型別預設值說明
哪些面Cad Faces頂面要選取的面。
其中文字—在什麼之中:組的名稱,例如 "Boss";或選取邊的文字,例如 "circular edges",即這些邊所圍的面。留空則為整個實體。

返回

面文字

備註

Round 26's review, and Charles's answer to it: the words that pick are English and are not translated, being what a group's name is written among, so somebody working in another language chooses from a list here, which the editor shows in their language, and wires the result where the words would be typed. What comes out is those same words, so the two can be mixed: "Boss top" typed into Of, or this node's result joined to typed words downstream.

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

管道

函數

Pipe along a copied rail. Zero thickness makes a solid pipe; positive thickness makes a hollow pipe. Its group is the pipe.

簽名
管道 -> Cad Model
    導軌: Curve
    半徑: 數字
    封閉端面: 真否
    厚度: 數字
    容差: 數字
    名稱: 文字
CadModel Pipe(
    Curve rail,
    double radius,
    bool capped = true,
    double thickness = 0,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
導軌Curve—The pipe's path.
半徑數字—Its outer radius.
封閉端面真否TrueWhether its ends are capped.
厚度數字0Its wall's thickness; zero for a solid rod.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

平面

函數

Creates a planar trimmed sheet from a closed boundary and optional hole loops. Its group is the sheet.

簽名
平面 -> Cad Model
    邊界: Curve
    孔洞: Curve 陣列
    容差: 數字
    名稱: 文字
CadModel PlanarFace(
    Curve boundary,
    Curve[] holes,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
邊界Curve—The closed boundary.
孔洞Curve 陣列—Closed loops inside it, cut out.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

環形陣列

函數

Copies around the world Z axis without fusing bodies. Full circles exclude a duplicate endpoint; partial arcs also use angle/count spacing. Each copy keeps the groups of what it copies; its own group is all the copies.

簽名
環形陣列 -> Cad Model
    模型: Cad Model
    數量: 整數
    角度: 數字
    名稱: 文字
CadModel PolarArray(
    CadModel model,
    int count,
    double angle = 6.283185307179586,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
數量整數—How many, the original among them.
角度數字6.283185307179586The angle the copies spread over, in radians.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

多面體

函數

A closed solid of flat faces through points, OpenSCAD's polyhedron(points, faces): each face a list of indices into the points. A face whose points lie in one plane is one exact planar face, of any number of sides; one whose points do not is cut into triangles, as OpenSCAD cuts it. The faces must close round a volume, each edge shared by two of them. OpenSCAD lists each face's points clockwise seen from outside; faces listed the other way round throughout are read too, and the solid turned outward. Its group is the solid.

簽名
多面體 -> Cad Model
    點: Point3d 陣列
    面: 整數陣列陣列
    容差: 數字
    名稱: 文字
CadModel Polyhedron(
    Point3d[] points,
    int[][] faces,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
點Point3d 陣列—The corners.
面整數陣列陣列—The faces, each a list of at least three indices into Points.
容差數字1E-06The model's tolerance, in its units: how far a face's points may stray from its plane and still be one flat face.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

投影曲線

函數

Projects a curve in a direction onto all trimmed faces, retaining all resulting pieces.

簽名
投影曲線 -> Curve 陣列
    模型: Cad Model
    曲線: Curve
    方向: Vector3d
    容差: 數字
Curve[] ProjectCurve(
    CadModel model,
    Curve curve,
    Vector3d direction,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
模型Cad Model—
曲線Curve—
方向Vector3d—
容差數字1E-06

返回

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

投影

函數

The shadow of solids on the XY plane, OpenSCAD's projection(): everything a line parallel to Z through it would meet, as a flat shape; with Cut, the cut through them at Z = 0 instead, OpenSCAD's projection(cut = true) (Cad.Slice). The shadow's edges are the solids' own edges and the curves along which their faces turn from facing up to facing down, carried straight down: exact where those are lines and arcs - a box however it is turned, a cylinder lying down, a sphere, a torus with its hole - and fitted within the tolerance where the faces are freeform.

簽名
投影(模型: Cad Model, 截切: 真否, 容差: 數字) -> Cad Shape
CadShape Projection(
    CadModel model,
    bool cut = false,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
模型Cad Model—The solids.
截切真否FalseWhether to cut at Z = 0 rather than cast the whole shadow.
容差數字1E-06The model's tolerance, in its units.

返回

結果Cad Shape

備註

Every edge and silhouette curve, carried down, cuts the plane into faces; a face is in the shadow when the solids lie over (or under) a point well inside it.

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

拉回曲線

函數

Pulls a curve onto trimmed B-rep faces by closest point.

簽名
拉回曲線(模型: Cad Model, 曲線: Curve, 容差: 數字) -> Curve 陣列
Curve[] PullCurve(
    CadModel model,
    Curve curve,
    double tolerance = 1E-06)

參數

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

返回

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

調整尺寸

函數

A solid scaled about the origin to a size, OpenSCAD's resize([x, y, z], auto): a size of zero keeps that direction as it is, or, with Auto, scales it by the largest factor of the sizes given, keeping the proportions. The sizes are read off the evaluated bodies' box. Its group is everything it scaled.

簽名
調整尺寸 -> Cad Model
    模型: Cad Model
    X 尺寸: 數字
    Y 尺寸: 數字
    Z 尺寸: 數字
    自動: 真否
    名稱: 文字
CadModel Resize(
    CadModel model,
    double x,
    double y,
    double z,
    bool auto = false,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
X 尺寸數字—The new size along X; zero to leave it.
Y 尺寸數字—The new size along Y; zero to leave it.
Z 尺寸數字—The new size along Z; zero to leave it.
自動真否FalseScale the directions given zero with the others.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

旋轉成形

函數

Revolves a copied profile about a line. Angle is radians; cap behavior follows the profile and kernel. Its groups: the whole revolution, "caps", the flat faces closing a turn short of a whole one, and "sides", every face the profile swept.

簽名
旋轉成形 -> Cad Model
    輪廓: Curve
    軸起點: Point3d
    軸方向: Vector3d
    角度: 數字
    容差: 數字
    名稱: 文字
CadModel Revolve(
    Curve profile,
    Point3d axisStart,
    Vector3d axisDirection,
    double angle = 6.283185307179586,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
輪廓Curve—The profile.
軸起點Point3d—A point on the axis.
軸方向Vector3d—The axis's direction.
角度數字6.283185307179586How far round, in radians.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

旋轉

函數

Rotates around an axis through the supplied center, in radians. Its group is everything it turned.

簽名
旋轉 -> Cad Model
    模型: Cad Model
    角度: 數字
    軸: Vector3d
    中心: Point3d
    名稱: 文字
CadModel Rotate(
    CadModel model,
    double angle,
    Vector3d axis,
    Point3d center,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
角度數字—The angle, in radians.
軸Vector3d—The axis's direction.
中心Point3d—A point on the axis.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

旋轉拉伸

函數

A flat shape turned about the Z axis into a solid, OpenSCAD's rotate_extrude(angle): the shape's X becomes the distance from the axis and its Y the height, so the shape stands in the XZ plane, and it turns from there counter-clockwise seen from +Z. The solid is exact. Its groups: the whole revolution, "caps", the flat faces closing a turn short of a whole one, and "sides", every face the shape swept.

簽名
旋轉拉伸 -> Cad Model
    形狀: Cad Shape
    角度: 數字
    容差: 數字
    名稱: 文字
CadModel RotateExtrude(
    CadShape shape,
    double angle = 6.283185307179586,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
形狀Cad Shape—The shape, in the XY plane, on one side of the Y axis.
角度數字6.283185307179586How far round, in radians, counter-clockwise, or clockwise when negative: a whole turn by default.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

結果Cad Model

備註

As in OpenSCAD the shape must lie on one side of the Y axis, which becomes the Z axis; it may touch it along an edge. OpenSCAD's angle is in degrees; here it is in radians. A negative angle turns the other way, clockwise from the XZ plane, as OpenSCAD's does.

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

按 XYZ 旋轉

函數

A solid turned about the X, Y and Z axes in that order, each through the origin - OpenSCAD's rotate([x, y, z]), whose angles are in degrees where these are in radians. Its group is everything it turned.

簽名
按 XYZ 旋轉 -> Cad Model
    模型: Cad Model
    繞 X: 數字
    繞 Y: 數字
    繞 Z: 數字
    名稱: 文字
CadModel RotateXyz(
    CadModel model,
    double x,
    double y,
    double z,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
繞 X數字—The turn about X, first, in radians.
繞 Y數字—The turn about Y, second.
繞 Z數字—The turn about Z, last.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

直紋

函數

Creates an open ruled surface B-rep between copied curves. Its group is the sheet.

簽名
直紋 -> Cad Model
    第一個: Curve
    第二個: Curve
    容差: 數字
    名稱: 文字
CadModel Ruled(
    Curve first,
    Curve second,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
第一個Curve—One edge of the sheet.
第二個Curve—The other.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

縮放

函數

Scales about the origin. Factors may be negative for reflection but cannot be zero. Its group is everything it scaled.

簽名
縮放 -> Cad Model
    模型: Cad Model
    X: 數字
    Y: 數字
    Z: 數字
    名稱: 文字
CadModel Scale(
    CadModel model,
    double x,
    double y,
    double z,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
X數字—The factor along X.
Y數字—The factor along Y.
Z數字—The factor along Z.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

截面

函數

Returns independently owned section curves through all bodies.

簽名
截面(模型: Cad Model, 平面: Plane, 容差: 數字) -> Curve 陣列
Curve[] Section(
    CadModel model,
    Plane plane,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
模型Cad Model—
平面Plane—
容差數字1E-06

返回

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

選取

函數

給實體上的一組選取起名,就像操作為它所做出的部分命名一樣:文字所選取的面或邊(可以用實體的描述和它的組,例如 "edges of Boss top"、"vertical edges of Plate")成為以這個名稱命名的組,之後的操作像讀取其他組一樣讀取它(例如 "Boss rim")。實體的幾何不變。

簽名
選取(模型: Cad Model, 名稱: 文字, 選取文字: 文字) -> Cad Model
CadModel Select(CadModel model, string name, string pick)

參數

名稱型別預設值說明
模型Cad Model—實體。
名稱文字—組的名稱,例如 "Boss rim"。實體上已有的組名會被拒絕。
選取文字文字—選取它的面或邊的文字,例如 "edges of Boss top"。

返回

結果Cad Model

備註

Round 26 (Charles): "The 'Bookkeep' can still be used to provide a generic set of operations and thus named as Select, which just adds new names to existing selections." The words are read when the group is, not before, and what they picked follows the solid's history as any group's members do. A name already a group on the solid is refused.

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

抽殼

函數

將一個實體掏空為給定厚度的壁,文字描述所選取的面留作開口:"the top face" 得到一個開口的盒子。留空則保留所有面,在內部掏空。

簽名
抽殼 -> Cad Model
    模型: Cad Model
    開口面: 文字
    厚度: 數字
    容差: 數字
    名稱: 文字
CadModel Shell(
    CadModel model,
    string openFaces,
    double thickness,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—實體,單個形體。
開口面文字—留作開口的面,用文字描述:例如 "the top face"(頂面)、"faces facing up"(朝上的面);留空則不開口。
厚度數字—壁厚,自外向內。
容差數字1E-06模型的容差,模型單位。
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

擷取截面

函數

The cut through a solid at a height, as a flat shape in the XY plane - OpenSCAD's projection(cut = true) of the solid moved down by Z. Bodies that overlap are cut together, as one.

簽名
擷取截面(模型: Cad Model, 高度: 數字, 容差: 數字) -> Cad Shape
CadShape Slice(
    CadModel model,
    double z = 0,
    double tolerance = 1E-06)

參數

名稱型別預設值說明
模型Cad Model—The solids.
高度數字0The height of the cut.
容差數字1E-06The model's tolerance, in its units.

返回

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

快照

函數

Evaluates and detaches construction history, preserving exact geometry.

簽名
快照(模型: Cad Model) -> Cad Model
CadModel Snapshot(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—

返回

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

球體

函數

Sphere centered at the origin. Its group is the sphere.

簽名
球體(半徑: 數字, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel Sphere(
    double radius,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
半徑數字—Its radius.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

分割

函數

Splits every body by a plane, retaining both sides and all disconnected pieces. Its groups: everything it gave, and "seams", the edges it made along the plane.

簽名
分割 -> Cad Model
    模型: Cad Model
    平面: Plane
    容差: 數字
    名稱: 文字
CadModel Split(
    CadModel model,
    Plane plane,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
平面Plane—The plane that splits them.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

減去

函數

Subtracts one cutter model, including all of its bodies, from a subject model. Its groups: everything it gave, "seams", the edges it made where the cut meets the subject, and "cut", the faces the cutter left.

簽名
減去 -> Cad Model
    主體: Cad Model
    切割體: Cad Model
    容差: 數字
    名稱: 文字
CadModel Subtract(
    CadModel subject,
    CadModel cutter,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
主體Cad Model—What is cut.
切割體Cad Model—What cuts it.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

高度圖

函數

A heightmap read from a file as a solid, OpenSCAD's surface(file, center, invert): a text file of heights, one row of numbers a line along X, the lines along Y, blank lines and lines starting with # skipped; or an image, each pixel's grey (its luminance, 0.2126 R + 0.7152 G + 0.0722 B) a height from 0 to 100, the top row of the image furthest along Y. See Cad.SurfaceFromHeights for the solid.

簽名
高度圖 -> Cad Model
    檔案: 文字
    置中: 真否
    反轉: 真否
    平滑: 真否
    容差: 數字
    名稱: 文字
CadModel Surface(
    string file,
    bool centered = false,
    bool invert = false,
    bool smooth = false,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
檔案文字—The text file (.dat or any other extension) or image (.png, .jpg, .bmp, .webp).
置中真否FalseCentred on the origin in X and Y.
反轉真否FalseFor an image, its heights turned upside down as OpenSCAD 2021.01 turns them, from 100/255 at black down to -99.6 at white; no effect on a text file.
平滑真否FalseThe top an exact bicubic surface through the heights, rather than OpenSCAD's triangles.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

由高度生成高度圖

函數

A heightmap as a solid, OpenSCAD's surface() of numbers given here: height heights[y][x] over the point (x, y), one unit apart, closed by upright sides and a flat bottom at the lower of 0 and one unit under the lowest height, as OpenSCAD closes it (smooth, one unit under the lowest point of the top, which can dip between heights). As OpenSCAD draws it, each square between four heights is four triangles meeting over its middle at their mean height, and triangles lying in one plane are one face. Smooth, the top is instead an exact bicubic B-spline surface through every height, the sides flat faces under its edges.

簽名
由高度生成高度圖 -> Cad Model
    高度: 數字陣列陣列
    置中: 真否
    平滑: 真否
    容差: 數字
    名稱: 文字
CadModel SurfaceFromHeights(
    double[][] heights,
    bool centered = false,
    bool smooth = false,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
高度數字陣列陣列—The heights, a row for each Y, each as long as the first; at least two by two.
置中真否FalseCentred on the origin in X and Y.
平滑真否FalseThe top an exact bicubic surface through the heights, rather than OpenSCAD's triangles.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

掃掠

函數

Sweeps a copied profile along one rail; freeform sweeps are fitted to tolerance. Its group is the sweep.

簽名
掃掠 -> Cad Model
    導軌: Curve
    輪廓: Curve
    封閉端面: 真否
    容差: 數字
    名稱: 文字
CadModel Sweep(
    Curve rail,
    Curve profile,
    bool capped = true,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
導軌Curve—The path.
輪廓Curve—The section carried along it.
封閉端面真否TrueWhether a closed profile's ends are capped into a solid.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

雙軌掃掠

函數

Sweeps a copied profile between two rails. Its group is the sweep.

簽名
雙軌掃掠 -> Cad Model
    導軌 1: Curve
    導軌 2: Curve
    輪廓: Curve
    封閉端面: 真否
    容差: 數字
    名稱: 文字
CadModel SweepTwoRails(
    Curve rail1,
    Curve rail2,
    Curve profile,
    bool capped = true,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
導軌 1Curve—One rail.
導軌 2Curve—The other.
輪廓Curve—The section carried between them.
封閉端面真否TrueWhether a closed profile's ends are capped into a solid.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

加厚

函數

Thickens a single open surface B-rep into a solid. Its group is everything it gave.

簽名
加厚 -> Cad Model
    模型: Cad Model
    厚度: 數字
    容差: 數字
    名稱: 文字
CadModel Thicken(
    CadModel model,
    double thickness,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The sheet, one body.
厚度數字—How thick, in the model's units.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

轉為網格

函數

Tessellates exact bodies with shared face-boundary vertices, preserving solid topology for collision and analysis. Separate bodies remain separate components; chord tolerance and normal angle control approximation. Output geometry is independently owned.

簽名
轉為網格(模型: Cad Model, 弦高公差: 數字, 角度: 數字) -> Mesh
Mesh ToMesh(
    CadModel model,
    double chordTolerance = 0.01,
    double angle = 0.15)

參數

名稱型別預設值說明
模型Cad Model—
弦高公差數字0.01
角度數字0.15

返回

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

圓環體

函數

Ring torus around the Z axis. Major radius must exceed minor radius. Its group is the torus.

簽名
圓環體 -> Cad Model
    主半徑: 數字
    次半徑: 數字
    容差: 數字
    名稱: 文字
CadModel Torus(
    double majorRadius,
    double minorRadius,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
主半徑數字—From the axis to the tube's middle.
次半徑數字—The tube's radius.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

變換後

函數

Applies a finite, invertible affine transform to every body. Transform composition uses column vectors: A*B applies B first. Its group is everything it moved.

簽名
變換後 -> Cad Model
    模型: Cad Model
    變換: Transform
    名稱: 文字
CadModel Transformed(
    CadModel model,
    Transform transform,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
變換Transform—The transform.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

平移

函數

Translates every body by a vector in model units. Its group is everything it moved.

簽名
平移 -> Cad Model
    模型: Cad Model
    X: 數字
    Y: 數字
    Z: 數字
    名稱: 文字
CadModel Translate(
    CadModel model,
    double x,
    double y,
    double z,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
X數字—How far along X.
Y數字—How far along Y.
Z數字—How far along Z.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

修剪

函數

Trims bodies to one side of a plane. Behind means opposite the plane normal. Its groups: everything it gave, and "seams", the edges it made along the plane.

簽名
修剪 -> Cad Model
    模型: Cad Model
    平面: Plane
    保留部分: Cutter Side
    容差: 數字
    名稱: 文字
CadModel Trim(
    CadModel model,
    Plane plane,
    CutterSide keep = CutterSide.Behind,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model—The bodies.
平面Plane—The plane that trims them.
保留部分Cutter Side後方Which side is kept.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

並集

函數

Unites all bodies as a set. Disjoint bodies are retained, and an empty list produces an empty model. Its groups: everything it gave, and "seams", the edges it made where the bodies cross.

簽名
並集(模型: Cad Model 陣列, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel Union(
    CadModel[] models,
    double tolerance = 1E-06,
    string name = "")

參數

名稱型別預設值說明
模型Cad Model 陣列—The models.
容差數字1E-06The model's tolerance, in its units.
名稱文字—它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。

返回

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

體積

函數

Sums signed solid volumes, in cubic model units. Grouped overlapping bodies are counted separately; union them first for set volume.

簽名
體積(模型: Cad Model) -> 數字
double Volume(CadModel model)

參數

名稱型別預設值說明
模型Cad Model—

返回

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