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. |
| 置中 | 真否 | False | Centered on the origin rather than cornered on it. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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"。 |
| 不透明度 | 數字 | 1 | How 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"。 |
| 不透明度 | 數字 | 1 | How 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. |
| 不透明度 | 數字 | 1 | How 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-06 | The 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. |
| 置中 | 真否 | False | Centered on the origin in height rather than standing on it. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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. |
| 封閉端面 | 真否 | True | Whether a closed profile's ends are capped into a solid. |
| 孔洞 | Curve 陣列 | — | Closed loops inside the profile, cut through. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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. |
| 實體 | 整數 | 0 | Which 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-06 | The 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-06 | The 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. |
| 置中 | 真否 | False | Centred on the origin in height rather than standing on it. |
| 分段數 | 整數 | 0 | Zero for exact circles, or the number of corners of OpenSCAD's faceted one (at least three). |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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. |
| 弦高 | 數字 | 0 | How far the tessellation of curved solids may stray from them, in model units; zero for a thousandth of the solids' size. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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-06 | The 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-06 | The 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. |
| 置中 | 真否 | False | Centred on Z = 0 in height rather than standing on it. |
| 扭轉 | 數字 | 0 | How far the top is turned, in radians, counter-clockwise seen from +Z. |
| X 向縮放 | 數字 | 1 | The top's scale along X: 1 keeps the shape's size, 0 (with Scale Y) closes it at a point. |
| Y 向縮放 | 數字 | 1 | The top's scale along Y. |
| 容差 | 數字 | 1E-06 | The 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. |
| 封閉端面 | 真否 | True | Whether closed end sections are capped into a solid. |
| 型別 | Loft Type | 正常 | How the surface runs between the sections. |
| 容差 | 數字 | 1E-06 | The 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. |
| 弦高 | 數字 | 0 | How far the tessellation of curved solids may stray from them, in model units; zero for a thousandth of their size. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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. |
| 封閉端面 | 真否 | True | Whether its ends are capped. |
| 厚度 | 數字 | 0 | Its wall's thickness; zero for a solid rod. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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.283185307179586 | The 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-06 | The 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. |
| 截切 | 真否 | False | Whether to cut at Z = 0 rather than cast the whole shadow. |
| 容差 | 數字 | 1E-06 | The 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. |
| 自動 | 真否 | False | Scale 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.283185307179586 | How far round, in radians. |
| 容差 | 數字 | 1E-06 | The 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.283185307179586 | How far round, in radians, counter-clockwise, or clockwise when negative: a whole turn by default. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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. |
| 高度 | 數字 | 0 | The height of the cut. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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-06 | The 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-06 | The 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). |
| 置中 | 真否 | False | Centred on the origin in X and Y. |
| 反轉 | 真否 | False | For 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. |
| 平滑 | 真否 | False | The top an exact bicubic surface through the heights, rather than OpenSCAD's triangles. |
| 容差 | 數字 | 1E-06 | The 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. |
| 置中 | 真否 | False | Centred on the origin in X and Y. |
| 平滑 | 真否 | False | The top an exact bicubic surface through the heights, rather than OpenSCAD's triangles. |
| 容差 | 數字 | 1E-06 | The 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. |
| 封閉端面 | 真否 | True | Whether a closed profile's ends are capped into a solid. |
| 容差 | 數字 | 1E-06 | The 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 = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 導軌 1 | Curve | — | One rail. |
| 導軌 2 | Curve | — | The other. |
| 輪廓 | Curve | — | The section carried between them. |
| 封閉端面 | 真否 | True | Whether a closed profile's ends are capped into a solid. |
| 容差 | 數字 | 1E-06 | The 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-06 | The 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-06 | The 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-06 | The 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-06 | The 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 建模
- 所屬包
- 電腦輔助設計