CAD 二维构建器
24 个节点
本页内容 24
二维构建器
函数Creates an empty session with a fixed, positive modeling tolerance.
二维构建器(容差: 数字) -> Cad Shape Builder
CadShapeBuilder CadShapeBuilder(double tolerance = 1E-06)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 容差 | 数字 | 1E-06 |
返回
| CAD 二维构建器 | Cad Shape Builder |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
添加形状
函数Adds a shape by union.
添加形状(Cad Shape Builder: Cad Shape Builder, 形状: Cad Shape)
void Add(CadShapeBuilder Cad Shape Builder, CadShape shape)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 形状 | Cad Shape | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
构建形状
函数Returns the shape drawn so far.
构建形状(Cad Shape Builder: Cad Shape Builder) -> Cad Shape
CadShape Build(CadShapeBuilder Cad Shape Builder)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
返回
| 结果 | Cad Shape |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
清空
函数Removes everything drawn.
清空(Cad Shape Builder: Cad Shape Builder)
void Clear(CadShapeBuilder Cad Shape Builder)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
切除形状
函数Takes a shape away from everything drawn so far.
切除形状(Cad Shape Builder: Cad Shape Builder, 形状: Cad Shape)
void Cut(CadShapeBuilder Cad Shape Builder, CadShape shape)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 形状 | Cad Shape | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
差集块
函数Adds the first child of a block less every other: OpenSCAD's difference() { ... } of 2D children.
差集块
Cad Shape Builder: Cad Shape Builder
子块: Action<Cad Shape Builder>void Difference(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
填充孔洞块
函数Adds what a block draws without its holes: OpenSCAD's fill() { ... }.
填充孔洞块
Cad Shape Builder: Cad Shape Builder
子块: Action<Cad Shape Builder>void Fill(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
子项
函数The children added so far, in order, each placed.
子项(Cad Shape Builder: Cad Shape Builder) -> Cad Shape 数组
CadShape[] Children(CadShapeBuilder Cad Shape Builder)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
返回
| 结果 | Cad Shape 数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
当前形状
函数The shape drawn so far.
当前形状(Cad Shape Builder: Cad Shape Builder) -> Cad Shape
CadShape Current(CadShapeBuilder Cad Shape Builder)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
返回
| 结果 | Cad Shape |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
公差
函数The tolerance used by the session's booleans, in model units.
公差(Cad Shape Builder: Cad Shape Builder) -> 数字
double Tolerance(CadShapeBuilder Cad Shape Builder)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
凸包块
函数Adds the convex hull of everything a block draws: OpenSCAD's hull() { ... } of 2D children (Cad2D.Hull), exact.
凸包块
Cad Shape Builder: Cad Shape Builder
子块: Action<Cad Shape Builder>void Hull(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
求交形状
函数Keeps only what everything drawn so far has in common with a shape.
求交形状(Cad Shape Builder: Cad Shape Builder, 形状: Cad Shape)
void Intersect(
CadShapeBuilder Cad Shape Builder,
CadShape shape)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 形状 | Cad Shape | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
交集块
函数Adds what every child of a block has in common: OpenSCAD's intersection() { ... } of 2D children.
交集块
Cad Shape Builder: Cad Shape Builder
子块: Action<Cad Shape Builder>void Intersection(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
闵可夫斯基和块
函数Adds the Minkowski sum of everything a block draws, each child added to the next: OpenSCAD's minkowski() { ... } of 2D children (Cad2D.Minkowski).
闵可夫斯基和块
Cad Shape Builder: Cad Shape Builder
子块: Action<Cad Shape Builder>void Minkowski(
CadShapeBuilder Cad Shape Builder,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
镜像块
函数Adds what a block draws, mirrored in the line through the origin square to a direction: OpenSCAD's mirror([x, y]) { ... }.
镜像块
Cad Shape Builder: Cad Shape Builder
法向 X: 数字
法向 Y: 数字
子块: Action<Cad Shape Builder>void Mirror(
CadShapeBuilder Cad Shape Builder,
double normalX,
double normalY,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 法向 X | 数字 | — | The mirror line's normal, along X. |
| 法向 Y | 数字 | — | Along Y. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
圆角偏移块
函数Adds what a block draws, grown or shrunk with round corners: OpenSCAD's offset(r) { ... }.
圆角偏移块
Cad Shape Builder: Cad Shape Builder
半径: 数字
子块: Action<Cad Shape Builder>void Offset(
CadShapeBuilder Cad Shape Builder,
double radius,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 半径 | 数字 | — | How far: positive grows, negative shrinks. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
尖角偏移块
函数Adds what a block draws, grown or shrunk with sharp or cut corners: OpenSCAD's offset(delta, chamfer) { ... }.
尖角偏移块
Cad Shape Builder: Cad Shape Builder
距离: 数字
倒角: 真否
子块: Action<Cad Shape Builder>void OffsetDelta(
CadShapeBuilder Cad Shape Builder,
double delta,
bool chamfer,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 距离 | 数字 | — | How far: positive grows, negative shrinks. |
| 倒角 | 真否 | — | Cut the corners across. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
投影块
函数Adds the shadow of what a 3D block builds on the XY plane, or with Cut the cut through it at Z = 0: OpenSCAD's projection(cut) { ... } (Cad.Projection).
投影块
Cad Shape Builder: Cad Shape Builder
截切: 真否
三维子块: Action<Cad Builder>void Projection(
CadShapeBuilder Cad Shape Builder,
bool cut,
Action<CadBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 截切 | 真否 | — | Whether to cut at Z = 0 rather than cast the whole shadow. |
| 三维子块 | Action<Cad Builder> | — | The block, given a 3D session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
调整尺寸块
函数Adds what a block draws, scaled about the origin to a size: OpenSCAD's resize([x, y], auto) { ... }.
调整尺寸块
Cad Shape Builder: Cad Shape Builder
宽度: 数字
高度: 数字
自动: 真否
子块: Action<Cad Shape Builder>void Resize(
CadShapeBuilder Cad Shape Builder,
double width,
double height,
bool auto,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 宽度 | 数字 | — | The new width; zero to leave it. |
| 高度 | 数字 | — | The new height; zero to leave it. |
| 自动 | 真否 | — | Scale a direction given zero with the other. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
旋转块
函数Adds what a block draws, turned about the origin counter-clockwise: OpenSCAD's rotate(a) { ... }, in radians.
旋转块
Cad Shape Builder: Cad Shape Builder
角度: 数字
子块: Action<Cad Shape Builder>void Rotate(
CadShapeBuilder Cad Shape Builder,
double angle,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 角度 | 数字 | — | How far, in radians. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
缩放块
函数Adds what a block draws, scaled about the origin: OpenSCAD's scale([x, y]) { ... }.
缩放块
Cad Shape Builder: Cad Shape Builder
X 向: 数字
Y 向: 数字
子块: Action<Cad Shape Builder>void Scale(
CadShapeBuilder Cad Shape Builder,
double x,
double y,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| X 向 | 数字 | — | The factor along X. |
| Y 向 | 数字 | — | The factor along Y. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
截面块
函数Adds the cut through what a 3D block builds at Z = 0: OpenSCAD's projection(cut = true) { ... }.
截面块
Cad Shape Builder: Cad Shape Builder
三维子块: Action<Cad Builder>void Slice(
CadShapeBuilder Cad Shape Builder,
Action<CadBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| 三维子块 | Action<Cad Builder> | — | The block, given a 3D session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
平移块
函数Adds what a block draws, moved: OpenSCAD's translate([x, y]) { ... }.
平移块
Cad Shape Builder: Cad Shape Builder
X: 数字
Y: 数字
子块: Action<Cad Shape Builder>void Translate(
CadShapeBuilder Cad Shape Builder,
double x,
double y,
Action<CadShapeBuilder> children)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Cad Shape Builder | Cad Shape Builder | — | |
| X | 数字 | — | How far along X. |
| Y | 数字 | — | How far along Y. |
| 子块 | Action<Cad Shape Builder> | — | The block, given a flat session of its own. |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计
开始二维
函数Creates an empty flat session from a graph node.
开始二维(容差: 数字) -> Cad Shape Builder
CadShapeBuilder Begin(double tolerance = 1E-06)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 容差 | 数字 | 1E-06 |
返回
| 结果 | Cad Shape Builder |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- CAD 二维构建器
- 所属包
- 计算机辅助设计