三維建模
可用網格與程序化模型,以及精確的 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.