CAD 匯入
3 個節點
本頁內容 3
讀取網格
函數A closed mesh read from a file as an exact solid of flat faces, OpenSCAD's import() of STL, OFF, OBJ and 3MF: corners closer than the tolerance are one corner, triangles in one plane one face, and the faces are built as Cad.Polyhedron builds them - a solid of the kernel's own kind, which the words pick faces of, a fillet rounds and STEP carries. The colours of a 3MF file's triangles are painted on their faces (Cad.Color), and triangles of different colours are never one face. A mesh that does not close round a volume is refused, saying where.
簽名
讀取網格(路徑: 文字, 容差: 數字, 名稱: 文字) -> Cad Model
CadModel ReadMesh(
string path,
double tolerance = 1E-06,
string name = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 路徑 | 文字 | — | The file: .stl (ASCII or binary), .off, .obj or .3mf; every object of a 3MF file is one body. |
| 容差 | 數字 | 1E-06 | The model's tolerance, in its units: how close corners are to be one. |
| 名稱 | 文字 | — | 它的組叫什麼;留空則用操作的種類,例如 "Box"。組名為這個名稱加上部分,例如 "Boss top"。 |
返回
| 結果 | Cad Model |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- CAD 匯入
- 所屬包
- 電腦輔助設計
讀取圖紙
函數A flat shape read from a drawing, OpenSCAD's import() of SVG and DXF.
簽名
讀取圖紙 -> Cad Shape
路徑: 文字
圖層: 文字
每英寸像素: 數字
容差: 數字CadShape ReadShape(
string path,
string layer = "",
double dpi = 96,
double tolerance = 1E-06)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 路徑 | 文字 | — | The drawing: .svg or .dxf. |
| 圖層 | 文字 | — | For a DXF file, the layer to read; empty for every layer. |
| 每英寸像素 | 數字 | 96 | For an SVG file, how many of its pixels make an inch. |
| 容差 | 數字 | 1E-06 | The model's tolerance, in its units. |
返回
| 結果 | Cad Shape |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- CAD 匯入
- 所屬包
- 電腦輔助設計
讀取 STEP
函數Reads STEP and converts coordinates to the chosen target unit. Preserves free geometry and import warnings.
簽名
讀取 STEP -> Cad Import Result
路徑: 文字
目標單位: Length Unit
容差: 數字CadImportResult ReadStep(
string path,
LengthUnit targetUnit = LengthUnit.Millimeter,
double tolerance = 1E-06)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 路徑 | 文字 | — | |
| 目標單位 | Length Unit | 毫米 | |
| 容差 | 數字 | 1E-06 |
返回
| 結果 | Cad Import Result |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- CAD 匯入
- 所屬包
- 電腦輔助設計