三维建模
可用网格与程序化模型,以及精确的 CAD 实体:草图、拉伸、圆角和剖切
28 个类别,共 525 个节点
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 支持等级
- 第 2 级(拟定)
- 所属包
- 计算机辅助设计 程序化生成
计算机辅助设计
精确的实体、曲面与曲线:按约束求解的草图,拉伸或旋转成实体,按其本身特征选取边与面并倒圆角、抽壳或切割,再剖切与测量;以及由它们组成的列表与树,每个节点一步。
程序化生成
高度图地形、噪声、侵蚀、行星贴图与纹理,以及承载它们的三维网格与场景。
网格图元选择
笔刷框选面Face box brush.笔刷球选面Face sphere brush.笔刷框选顶点笔刷球选顶点间隔取消选择边间隔取消选择面间隔取消选择顶点Simple DCC-style "checker deselect":计算面面积Works for planar or mildly non-planar n-gons.边的相邻面边的相邻边由面取边由顶点取边顶点的边边的顶点扩展边选择扩展面选择扩展顶点选择面的边面的相邻面由边取面由顶点取面顶点的面填充选择面填充选择顶点顶点的半边求交反选边反选面反选顶点蒙版选择Polygon face selection using image mask.解析索引组Parses expressions like:选择相邻边选择相邻面选择相邻顶点选择边界边选择边界面选择面的边界选择面的边界顶点选择朝下的面Select downward facing/bottom faces.按 ID 选择边选择边环选择边圈选择边圈(复杂)选择边按面夹角选择边按长度选择边按条件选择边选择框内的边选择球内的边按 ID 选择面选择面环选择面按面积选择面按中心在框内选择面按中心在球内选择面按最少边数选择面按法线选择面Selects faces whose normal points within maxAngleDeg of the target direction.按条件选择面按边数选择面选择与边相连的面选择朝向某点的面选择内部边选择内部面Face is considered "interior" here if none of its edges touch the mesh boundary.选择相连边选择相连面选择相连平面选择相连顶点选择游离边选择游离顶点选择镜像顶点选择裸边选择非流形边选择非流形顶点随机选择边随机选择面随机选择顶点选择锐边选择最短边路径选择最短面路径选择最短顶点路径选择侧面选择活动对象一侧Blender-like Side of Active for vertices.按长度选择相似边按法线选择相似面按边数选择相似面选择朝上的面Select upward facing/top faces.按 ID 选择顶点选择顶点按平面侧选择顶点按条件选择顶点按价选择顶点选择与边相连的顶点选择框内的顶点选择球内的顶点收缩边选择Removes edges on the border of the current edge selection.收缩面选择Removes the outer "shell" of the face selection each step.收缩顶点选择Removes boundary-like vertices of the current vertex selection.减去转为 ID转为索引组尝试获取边尝试获取面尝试获取顶点并集顶点的相邻顶点由边取顶点由面取顶点
CAD 建模
面积Sums body surface areas in square model units, including interior faces of unfused groups.装配Collects two models as separate assembly bodies.实体Returns each body as an independently owned model for assembly manipulation.包围盒Returns combined bounds of trimmed geometry, or BoundingBox.Empty for an empty model.长方体Box with a minimum corner at the origin, or centered on it when requested.封口Caps planar openings.倒角在一个实体上对文字描述所选取的边倒斜角,在其相交的两个面上各退回同一距离。着色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 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".RGB 颜色A colour from its red, green and blue, each from 0 to 1, as OpenSCAD's color([r, g, b, a]) gives one.模型颜色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.圆锥体Capped cone with its base at Z=0 and apex on positive Z.包含点Tests whether a point is contained by any solid in the model.圆柱体Capped cylinder along positive Z, base at Z=0 or centered in height.差集Subtracts the union of every cutter body from the union of subject bodies.拔模将文字描述在实体上选取的平面绕其与中性面的交线倾斜一个角度(弧度)——模具的拔模:正角度使零件离开中性面处变窄。边每个形体上文字描述所选取的边的精确曲线——未指定时为全部——按形体与边的顺序:同样的文字交给圆角或倒角时将处理的边,可先在此查看。空模型A successful collection with no bodies; identity for union and difference tools.求值Explicitly evaluates a graph value so its diagnostic result can be inspected in a node.拉伸Extrudes a copied planar profile with optional hole loops.拉伸面将文字描述在实体上选取的那一个面沿其外法线推拉一段距离:向外为加料,负距离为切入。拉伸区域Extrudes planar boolean regions, preserving each region's holes.面的颜色The colour each face of one body is painted, by face, or null for a face never painted.面每个形体上文字描述所选取的面——未指定时为全部——各为一张独立的片体,按形体与面的顺序,保留其精确曲面、孔与修剪:同样的文字交给抽壳或拔模时将处理的面,可先在此查看。多面球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.圆角在一个实体上,用给定半径的滚球对文字描述所选取的边倒圆角,例如 "edges parallel to Z"、"edges of the top face"、"convex edges"。由实体创建Imports independently owned copies of exact kernel geometry.由曲面创建Creates an open B-rep from a copied surface.圆台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.熔合Set union of two models, retaining disconnected output bodies.编组Collects models without fusing touching or overlapping bodies.凸包The convex hull of solids, OpenSCAD's hull(): the smallest convex solid holding them all.点的凸包The convex polyhedron of points: OpenSCAD's hull of points (the corners of tiny cubes, say), exact, its corners the given points.交集Intersection of two body sets.合并Joins coincident naked edges of open B-reps; does not boolean fuse overlapping solids.线性阵列Copies the model count times, including the original at index zero, without fusing bodies.线性拉伸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.放样Lofts ordered, copied cross-sections.闵可夫斯基和The Minkowski sum of solids, OpenSCAD's minkowski(): every point of one added to every point of the next.镜像Mirrors in a plane.移动面将文字描述在实体上选取的那一个平面按 X、Y、Z 移动,周围的面随之调整:把一面墙加厚,或把一级台阶抬高。偏移Offsets a single closed solid without changing its topology.定向Orients a model between local frames without scaling.选取边从列表中选择哪些边,而不必书写:得到圆角或倒角的引脚所读的那段文字。选取面从列表中选择哪些面,而不必书写:得到圆角、抽壳或拔模的引脚所读的那段文字。管道Pipe along a copied rail.平面Creates a planar trimmed sheet from a closed boundary and optional hole loops.环形阵列Copies around the world Z axis without fusing bodies.多面体A closed solid of flat faces through points, OpenSCAD's polyhedron(points, faces): each face a list of indices into the points.投影曲线Projects a curve in a direction onto all trimmed faces, retaining all resulting pieces.投影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).拉回曲线Pulls a curve onto trimmed B-rep faces by closest point.调整尺寸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.旋转成形Revolves a copied profile about a line.旋转Rotates around an axis through the supplied center, in radians.旋转拉伸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.按 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.直纹Creates an open ruled surface B-rep between copied curves.缩放Scales about the origin.截面Returns independently owned section curves through all bodies.选取给实体上的一组选取起名,就像操作为它所做出的部分命名一样:文字所选取的面或边(可以用实体的描述和它的组,例如 "edges of Boss top"、"vertical edges of Plate")成为以这个名称命名的组,之后的操作像读取其他组一样读取它(例如 "Boss rim")。抽壳将一个实体掏空为给定厚度的壁,文字描述所选取的面留作开口:"the top face" 得到一个开口的盒子。截取截面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.快照Evaluates and detaches construction history, preserving exact geometry.球体Sphere centered at the origin.分割Splits every body by a plane, retaining both sides and all disconnected pieces.减去Subtracts one cutter model, including all of its bodies, from a subject model.高度图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.由高度生成高度图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).扫掠Sweeps a copied profile along one rail; freeform sweeps are fitted to tolerance.双轨扫掠Sweeps a copied profile between two rails.加厚Thickens a single open surface B-rep into a solid.转为网格Tessellates exact bodies with shared face-boundary vertices, preserving solid topology for collision and analysis.圆环体Ring torus around the Z axis.变换后Applies a finite, invertible affine transform to every body.平移Translates every body by a vector in model units.修剪Trims bodies to one side of a plane.并集Unites all bodies as a set.体积Sums signed solid volumes, in cubic model units.
变换
M00Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M01Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M02Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M03Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M10Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M11Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M12Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M13Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M20Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M21Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M22Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M23Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M30Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M31Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M32Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).M33Matrix entries M[row][column]; the translation is (M03, M13, M23) and the projective row is (M30, M31, M32, M33).创建变换Creates a transform from its 16 entries in row-major order.近似相等True when every entry differs by at most Tol.相等Exact equality of all entries.行列式Determinant of the 4×4 matrix (for affine transforms the determinant of the 3×3 linear part; negative for mirrors).是否为仿射变换True when the last row is (0, 0, 0, 1), i.e. there is no projective part.是否为单位变换True when the transform is exactly the identity.元素Entry at row R, column C.获取哈希码逆变换The inverse transform.转为数组Copies the entries into a new 4×4 array indexed [row, column].转为文本Returns the four rows, e.g. "[1, 0, 0, 5; 0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1]" (invariant culture).转置The transposed matrix.尝试求逆General 4x4 inverse.换基Change of coordinates: returns the transform taking coordinates in Source's frame to coordinates in Target's frame.从数组创建Creates a transform from a 4×4 array indexed [row, column].单位变换The identity transform.镜像Reflection through a plane.相等运算Exact equality of all entries.不等运算Inequality of some entry.乘法运算Composition a·b: applying the result equals applying B first, then A.平面投影Projection onto a plane along its normal.平面到平面Maps geometry expressed relative to From to the same relative placement on To.旋转Rotation by Angle radians about an axis through Center.缩放Uniform scale about the world origin.错切Shear: p' = p + (dot(p - plane.Origin, plane.ZAxis)) * shear.平移Translation by a vector.
三维几何体
阵列复制边倒角面倒角网格倒角桥接边环桥接面创建双锥宝石创建长方体Create a box of any size.创建圆锥体Create a cone.创建立方体Create a square cube.创建圆柱体Create a quad face cylinder.创建栅栏创建长城创建网格平面Create a quad grid mesh创建二十面球Create a triangle sphere.创建叶片Creates a pointed leaf blade in local XY plane, oriented by rotation.创建四边形叶片创建定向长方体创建棱柱创建太空伙伴创建四棱锥Creates a stepped square pyramid (a ziggurat/frustum made of quads only).创建楼梯Creates a common stair.创建星形棱柱创建圆环体Create a quad face torus.创建树创建管创建经纬球Create a UV sphere (quad face).差集内插面交集沿 X 镜像复制沿 Y 镜像复制沿 Z 镜像复制打包Pack multiple meshes into one.径向阵列复制(度)旋转成形旋转缩放变换平移并集拆分孤岛
CAD 构建器
CAD 构建器Creates an empty session with a fixed, positive modeling tolerance.添加Adds a model by set union, applying the current placement first.追加Adds a model as separate bodies without fusing them.构建Returns the current immutable snapshot with no copying or regeneration.清空Removes all bodies, retaining the placement stack.着色块Adds everything a block builds, painted: OpenSCAD's color(c) { ... } (Cad.Color).切除Subtracts a model after applying the current placement.差集块Adds the first child of a block less every other: OpenSCAD's difference() { ... }.差集组Runs a nested construction in an independent session, then subtracts its completed union as one atomic edit.子项The children added so far, in order, each placed: what a scoped operation given this session's block works on.当前模型The current immutable evaluated snapshot.公差The tolerance used by builder boolean edits, in model units.凸包块Adds the convex hull of everything a block builds: OpenSCAD's hull() { ... } (Cad.Hull: exact for solids of flat faces and for solids standing upright between two heights, the hull of their tessellation otherwise).求交Keeps the intersection with a model after applying the current placement.交集块Adds what every child of a block has in common: OpenSCAD's intersection() { ... }.线性拉伸块Adds a flat shape a block draws, carried up the Z axis: OpenSCAD's linear_extrude(height) { ... }.闵可夫斯基和块Adds the Minkowski sum of everything a block builds, each child added to the next: OpenSCAD's minkowski() { ... } (Cad.Minkowski: exact for a solid and a ball, for solids standing upright, and for polyhedra; the sum of a tessellation otherwise).镜像块Adds what a block builds, mirrored in the plane through the origin square to a direction: OpenSCAD's mirror([x, y, z]) { ... }.矩阵变换块Adds what a block builds under a transform: OpenSCAD's multmatrix(m) { ... }.弹出变换Restores the preceding placement; throws if the stack is empty.压入变换Pushes a local placement.调整尺寸块Adds what a block builds, scaled about the origin to a size: OpenSCAD's resize([x, y, z], auto) { ... }.按 XYZ 旋转块Adds what a block builds, turned about the X, Y and Z axes in that order: OpenSCAD's rotate([x, y, z]) { ... }, in radians.旋转拉伸块Adds a flat shape a block draws, turned about the Z axis: OpenSCAD's rotate_extrude(angle) { ... } (Cad.RotateExtrude; the angle is in radians).缩放块Adds what a block builds, scaled about the origin: OpenSCAD's scale([x, y, z]) { ... }.设置Replaces the current model on success.变换当前模型Transforms all current geometry; does not change the placement used for subsequent additions.平移块Adds what a block builds, moved: OpenSCAD's translate([x, y, z]) { ... }.尝试设置Attempts to replace Current without throwing for a geometric failure.并集组Runs a nested construction in an independent session, then unions the completed model as one atomic edit.应用变换Executes a placement scope and restores placement even if the action throws.开始Creates an empty session from a graph node.
CAD 曲线
圆弧Circular arc, in radians, with end angle greater than start angle and a sweep no greater than one turn.面积Area of a closed planar boundary, before subtracting holes.混接Creates a tangent or curvature continuous connector between the end of the first and start of the second curve.布尔区域Planar region boolean retaining outer/hole relationships.圆Circle in a local frame.最近点Closest point on the curve.控制点曲线NURBS from control points with optional rational weights.曲率Curvature vector at a normalized parameter.按长度等分Returns count+1 points dividing the curve into equal arc-length segments, including both endpoints.按参数等分Returns count+1 samples equally spaced in parameter space, including both endpoints; this is not equal arc-length division.椭圆Elliptical curve in a local frame.延伸Extends one or both ends by model length using the selected continuation style.标架Creates a local frame from an origin and nonzero normal.多个标架Rotation minimizing frames at equal arc-length stations, suitable for orienting repeated components.插值曲线NURBS interpolant through the supplied points.交点Curve intersections including overlap intervals; event parameters use each curve's native domain.连接Joins curves whose endpoints meet within tolerance; disconnected chains remain separate.长度Curve length in model units.直线Line between distinct points.偏移Offsets a planar curve by signed distance; reports failure when the kernel cannot construct the offset.尖角偏移Offsets a planar line/arc chain with sharp corners by intersecting the exact extended offset primitives.曲线对Collects two independently copied curves in order, for loft sections or region inputs in visual graphs.点Creates a finite point.曲线上的点Evaluates a curve at a normalized parameter from zero through one.多段线Polyline through copied points, optionally closing the last-to-first segment.投影到平面Orthogonally projects onto a plane; a collapsed projection reports failure.重建Rebuilds a curve to a specified control point count and degree; this is an approximation.矩形Rectangle in a local frame, beginning at its origin and extending in positive local X and Y.反转Reverses the curve without modifying its input.分割Splits at normalized parameters strictly between zero and one, retaining all pieces.切线Unit tangent at a normalized parameter.变换后Returns a transformed copy of a curve.修剪Extracts the normalized interval [start,end] from a curve.向量Creates a finite vector.
约束草图
角度两条直线之间的角度,以度为单位。圆弧绕圆心从起点逆时针到终点的圆弧。构建求解草图并构建它的实体。圆一个圆。重合两个点位于同一位置。直径圆或圆弧的直径。距离两点之间的距离;带名称时,之后可以通过“设置尺寸”修改它。等长两条长度相等的直线。等半径两个半径相等的圆或圆弧。拉伸沿工作平面的法向拉伸草图的闭合区域;深度和其他尺寸一样,也是一个尺寸。原点草图的原点,它是固定的。水平一条与工作平面的 X 轴平行的直线。车削让草图的闭合区域绕一条构造线旋转一整圈。长度线段的长度。直线一条线段;构造线参与约束,也可以作为车削的轴,但不围成区域。中点点位于直线的中点。点在圆上点在圆或圆弧上。点在直线上点在直线上(直线向两端无限延长)。平行两条平行的直线。垂直两条垂直的直线。点一个基准点。多边形按顺序经过各点、角点重合的闭合多边形。矩形由四条直线围成的闭合矩形:角点重合,边水平和竖直,从底边起逆时针排列。旋转成形让草图的闭合区域绕一条构造线旋转一个角度,以度为单位。相切圆弧在与直线共有的点处与直线相切;这个共有点须由“重合”建立。竖直一条与工作平面的 Y 轴平行的直线。开始草图在 XY 工作平面中开始一个草图。
CAD 二维形状
形状面积A shape's area, in square model units.形状包围盒The box round a shape, flat at Z = 0.圆A disk centred on the origin, an exact circle; or, given three or more segments, OpenSCAD's regular polygon of that many corners on the circle, the first on +X: circle(r, $fn = segments).形状差集A shape with every cutter taken away, OpenSCAD's difference() of 2D children: the first child less the others.填充孔洞A shape without its holes, OpenSCAD's fill(): each region's outer boundary filled, islands in former holes merged in.OpenSCAD 分段数How many segments OpenSCAD cuts a circle of a radius into, from its special variables: $fn when it is set, else as many as keep each segment's angle at least Minimum Angle and its length at least Minimum Size, and never fewer than five.由曲线生成形状The shape closed curves in the XY plane enclose: even-odd by default, as polygon paths are, so curves inside others are holes; nonzero reads which way each curve runs, as font outlines and most SVG paths do; any fills everything inside any curve.由区域生成形状The shape of planar regions in the XY plane - what CadCurves.BooleanRegions and CadText.Regions give - merged where they overlap.形状凸包The convex hull of flat shapes, OpenSCAD's hull() of 2D children: the smallest convex shape holding them all.平面点的凸包The convex hull of points in the XY plane, as a flat shape; their Z is ignored.形状交集What every shape has in common, OpenSCAD's intersection() of 2D children.形状闵可夫斯基和The Minkowski sum of flat shapes, OpenSCAD's minkowski() of 2D children: every point of one added to every point of the next.镜像形状A shape mirrored in the line through the origin square to a direction, OpenSCAD's mirror([x, y]): (1, 0) mirrors left to right.圆角偏移A shape grown or shrunk by a distance with round corners, OpenSCAD's offset(r): growing, every point within the radius of the shape joins it (its Minkowski sum with a disk); shrinking, every point within the radius of its outside leaves it.尖角偏移A shape grown or shrunk by a distance with sharp corners, OpenSCAD's offset(delta, chamfer): every boundary moves out (or in) square to itself, and corners are carried out to where the moved sides meet, or with Chamfer cut straight across.形状轮廓Copies of every boundary of a shape: each region's outer boundary, then its holes.多边形A polygon through points, OpenSCAD's polygon(points, paths): with no paths, one boundary through every point in order; with paths, one boundary through each list of point indices.调整形状尺寸A shape scaled about the origin to a width and height, OpenSCAD's resize([x, y], 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.旋转形状A shape turned about a point, counter-clockwise seen from +Z, OpenSCAD's rotate(a) about the origin (whose angle is in degrees).缩放形状A shape scaled about the origin, OpenSCAD's scale([x, y]).矩形A rectangle with a corner at the origin, or centred on it: OpenSCAD's square([width, height], center).文字形状Text as a flat shape, OpenSCAD's text(text, size, font, halign, valign): the font's exact outlines, counters as holes, laid out from the origin along +X with lines going down.变换形状A shape under a transform that keeps the XY plane where it is, OpenSCAD's multmatrix of a 2D child: any invertible mix of moves, turns, scales, mirrors and shears within the plane.平移形状A shape moved, OpenSCAD's translate([x, y]).形状并集Everything in any of the shapes, OpenSCAD's union() of 2D children.
CAD 二维构建器
二维构建器Creates an empty session with a fixed, positive modeling tolerance.添加形状Adds a shape by union.构建形状Returns the shape drawn so far.清空Removes everything drawn.切除形状Takes a shape away from everything drawn so far.差集块Adds the first child of a block less every other: OpenSCAD's difference() { ... } of 2D children.填充孔洞块Adds what a block draws without its holes: OpenSCAD's fill() { ... }.子项The children added so far, in order, each placed.当前形状The shape drawn so far.公差The tolerance used by the session's booleans, in model units.凸包块Adds the convex hull of everything a block draws: OpenSCAD's hull() { ... } of 2D children (Cad2D.Hull), exact.求交形状Keeps only what everything drawn so far has in common with a shape.交集块Adds what every child of a block has in common: OpenSCAD's intersection() { ... } of 2D children.闵可夫斯基和块Adds the Minkowski sum of everything a block draws, each child added to the next: OpenSCAD's minkowski() { ... } of 2D children (Cad2D.Minkowski).镜像块Adds what a block draws, mirrored in the line through the origin square to a direction: OpenSCAD's mirror([x, y]) { ... }.圆角偏移块Adds what a block draws, grown or shrunk with round corners: OpenSCAD's offset(r) { ... }.尖角偏移块Adds what a block draws, grown or shrunk with sharp or cut corners: OpenSCAD's offset(delta, chamfer) { ... }.投影块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).调整尺寸块Adds what a block draws, scaled about the origin to a size: OpenSCAD's resize([x, y], auto) { ... }.旋转块Adds what a block draws, turned about the origin counter-clockwise: OpenSCAD's rotate(a) { ... }, in radians.缩放块Adds what a block draws, scaled about the origin: OpenSCAD's scale([x, y]) { ... }.截面块Adds the cut through what a 3D block builds at Z = 0: OpenSCAD's projection(cut = true) { ... }.平移块Adds what a block draws, moved: OpenSCAD's translate([x, y]) { ... }.开始二维Creates an empty flat session from a graph node.
三维预览场景
CAD 曲面
面积Area of the entire untrimmed surface.边界曲面Coons patch bounded by four connected curves in perimeter order.最近点Closest point on an untrimmed surface.曲率Principal, Gaussian and mean curvature at normalized U and V.标架Local surface frame at normalized U and V.插值网格曲面Interpolates a rectangular grid in U-major order: points[u * countV + v].等参曲线Isoparametric curve varying in U (direction 0) or V (direction 1), at a normalized parameter in the other direction.放样Uncapped loft surface with explicit interpolation degree and closing behavior.网络曲面Gordon surface through intersecting U and V curve families; the network must be compatible.法线Surface unit normal at normalized U and V.偏移Signed offset surface, fitted to tolerance when an exact construction is unavailable.面板Subdivides a surface into U-major rectangular panels.曲面上的点Surface point at normalized U and V.反转Reverses one parametric direction without changing the surface locus.直纹曲面Ruled surface between two curves.变换后Transforms an independently owned surface.修剪Rectangular sub-surface using normalized bounds.
网格编辑
几何转换
构建 RPR 网格数据构建三角网格索引Assume mostly it's triangle mesh already.构建顶点缓冲区半边网格转多边形网格Converts Representations.HalfEdgeMesh back to Representations.NGonFaceIndexMesh.多边形网格转半边网格Converts between editable half-edge topology and simple face-index mesh representation.转为半边网格Converts streamed triangle or quad geometry into a half-edge mesh.转为交错网格数据Converts Representations.VertexDataTriangleMeshBuilder into rendering-ready interleaved triangle geometry.转为多边形面索引网格Converts InterleavedTriangleGeometry back into an NGonFaceIndexMesh.转为流式顶点网格数据Converts half-edge geometry into streamed indexed mesh data.转为另一种三角网格Converts interleaved triangle geometry back into Representations.VertexDataTriangleMeshBuilder.
自复制树
约束 CAD
曲线模型求解后的曲线,精确表示,单位为毫米:草图所画的每条直线、圆弧、圆、样条和文字轮廓,以及拉伸、车削和重复操作由它们生成的内容——它们的副本,以及拉伸在其端点的副本之间连出的边;不含构造线和隐藏的组。尺寸驱动模型的尺寸,包括它们的名称(约束的注释)和数值。精确实体由 CAD 内核精确构建的模型实体,单位为毫米:每次拉伸、车削与旋转都由草图的精确曲线而非三角形生成,每次重复都按副本复制,并按模型的方式与之前的实体组合——合并、切除、取交或并置。组模型的特征历史:每个组的名称、类型、剩余自由度和错误。区域草图所围成的封闭区域,精确表示,单位为毫米:每个区域是一条外轮廓以内、其内部轮廓以外的部分,直线与圆弧仍为直线与圆弧。设置尺寸修改一个尺寸并重新求解全部内容后得到的新模型:长度以毫米为单位,角度以度为单位。实体整个特征历史构建出的实体,作为共享顶点和法线的三角网格;模型没有构建实体时为空。表面积模型实体的表面积,单位为平方毫米;模型没有构建实体时为 0。体积模型实体的体积,单位为立方毫米;模型没有构建实体时为 0。
声明式 DSG 规则
CAD 求值
CAD 导出
写入 3MFWrites a 3MF package (3D Manufacturing Format, the core specification's model with base materials), the format slicers read colour from: each body one object, a closed mesh tessellated as CadExport.WriteStl tessellates, each triangle in the colour of the face it was cut from, with its alpha.写入 DXFWrites a flat shape as a DXF drawing, as OpenSCAD exports a 2D object: its boundaries as lines, arcs and polylines on one layer, curves other than lines and arcs followed by polylines within the tolerance (the kernel's DxfWriter).写入 OFFWrites the bodies as one OFF file (Object File Format, which OpenSCAD reads and writes), tessellated as CadExport.WriteStl tessellates, each body a closed mesh of shared corners, its faces counter-clockwise seen from outside.写入 STEPWrites all exact B-reps to STEP, retaining disconnected bodies.写入 STLWrites an explicitly tessellated binary STL.写入 SVGWrites a flat shape as an SVG drawing, as OpenSCAD exports a 2D object: one filled path, even-odd so that holes stay holes, in millimetres with Y running up the page as it does in the model, on a page that is the shape's box.
约束模型
自定义树节点
CAD 曲面插值
闭合三次放样Interpolates a cyclic sequence of at least three sections with a periodic C2 cubic spline.三次曲线Interpolates ordered points with a C2 cubic spline, chord-length parameters and unit Bessel endpoint tangents.三次放样Interpolates compatible section control polygons with cubic Bessel endpoint tangents estimated from RMS control-point chord lengths.按参数三次放样Interpolates sections at supplied strictly increasing parameters, using Bessel endpoint conditions in that same parameter space.
CAD 导入结果
CAD 字体
CAD 文字
CAD 数据树
CAD 导入
读取网格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.读取图纸A flat shape read from a drawing, OpenSCAD's import() of SVG and DXF.读取 STEPReads STEP and converts coordinates to the chosen target unit.