元編程參考文件

OpenWeed

可用

參數化建模:以列表和樹組織幾何體,基於 Divooka 的精確 CAD 幾何

Methodox Wiki 上的使用指南

15 個類別,共 263 個節點

所屬發行版
元編程(教育版)元編程(專業版)
支援等級
第 2 級(擬定)
所屬包
電腦輔助設計
電腦輔助設計

精確的實體、曲面與曲線:按約束求解的草圖,拉伸或旋轉成實體,按其本身特徵選取邊與面並倒圓角、抽殼或切割,再剖切與測量;以及由它們組成的列表與樹,每個節點一步。

Weed 數學

絕對值Absolute value.加法Adds two numbers.平均值Arithmetic average of a nonempty list.貝塞爾對映Evaluates a monotone-X cubic Bezier mapping from (0,0) to (1,1), solving X before returning Y; values outside [0,1] are rejected.範圍Returns the smallest increasing interval enclosing a nonempty finite list.連續區間Adjacent directed intervals from an ordered list; optional wrap connects last to first.餘弦Cosine of a radian angle.除法Divides a by nonzero b; zero division is an explicit error.數字相除Divides corresponding numeric items using longest-list matching.區間Constructs a directed interval; decreasing domains are preserved.相等Exact numeric equality; no geometry tolerance is implicitly applied.不含目前項的累加和Running totals before each item, starting at zero; output count equals input count.包含目前項的累加和Returns inclusive cumulative sums, matching the endpoints of additive consecutive domains.整數Exposes an integer parameter for counts and indices.整數數列Produces exact integer indices, for example pinned mesh vertices.大於Compares numeric values, optionally including equality.批量相加Sum of a list; an empty list has sum zero.最大值Returns the larger numeric value.最小值Returns the smaller numeric value.取模Remainder after division, with the dividend's sign.乘法Multiplies two numbers.取負Negates a number.數字Exposes a finite scalar parameter for reuse across graph operations.偏移Adds a scalar offset to every finite list value.部分和Running totals including the first item.圓周率Returns a factor of pi.冪運算Raises a number to an exponent, retaining IEEE NaN for an undefined real result.弧度Converts degrees to radians.等分範圍Generates steps + 1 evenly spaced values including both domain endpoints.重對映Linearly remaps a number between directed domains; values outside the source are extrapolated.重對映並截斷Remaps and clamps to the target domain, corresponding to the clipped output of Remap Numbers.重對映數字Remaps every value independently, preserving its order.數列Generates count numbers starting at start and separated by step; zero count is empty.正弦Sine of a radian angle.小於Compares numeric values, optionally including equality.平方根Square root, retaining IEEE NaN for a negative input.減法Subtracts b from a.超級公式Evaluates the polar superformula used by the tower study; n1, a and b must be positive.

Weed 平面曲線

形心Computes a closed planar profile's area centroid.多個形心Computes the area centroid of each closed planar curve.閉合Adds a straight closing segment to each open curve; closed inputs are copied unchanged.曲線集合Copies a single curve into a list.差集Subtracts closed planar curve regions, retaining outer boundaries and holes as separate loops in each region's order.終點Returns the curve end point.端點Returns every start followed by every end, matching merged endpoint lists.多個終點Returns the end of each curve in source order.炸開Explodes composite curves into their constituent segments, adding each curve's item index to the path.升級為資料樹Copies each profile into its own singleton branch.高度Returns world Y bounding extents of curves.交點參數Returns intersection parameters on the first curve, including both limits of overlapping intervals.項Returns one curve per branch, with cyclic indexing so -1 selects the last section.連線分支Joins each branch independently and flattens the resulting curves in branch order.兩點之間的直線Creates lines between longest-matched endpoint lists.分支放樣Creates one normal cubic loft per branch of ordered section curves.按參數分支放樣Lofts every branch at the same explicit section parameters, so common segment endpoints produce coincident patch boundaries.在 X 處鏡像Mirrors corresponding curves across YZ planes at supplied origins.鏡像弦Mirrors each planar curve across the vertical plane through its endpoint chord.移動點Moves every point by a common vector.移動截面Moves each branch's curve items along Z by corresponding heights; list lengths must agree.朝向偏移Offsets each profile toward a matched side point at every supplied distance; each profile owns one branch of ordered sections.按 X 遞增定向Orients an open curve from the endpoint with the smaller world X coordinate.平面Creates independent planar faces from closed profiles.點的 YReturns world Y coordinates.繞原點旋轉Rotates copies around corresponding origins and angles using longest-list matching.縮放Uniformly scales a curve about a supplied center.打散閉合曲線Splits a closed curve into cyclic pieces; the original seam is joined through unless it is itself a cut.按形心 Y 排序Sorts closed profiles by their area centroid's world Y coordinate.按長度排序Sorts curves by measured arc length, retaining stable order for ties.起點Returns the curve start point.多個起點Returns the start of each curve in source order.子列表Extracts an inclusive interval of list indices with strict bounds.轉置截面Transposes segment items against the final section-path index: {A;B}(i) becomes {A;i}(B).兩點之間的向量Constructs vectors between corresponding points using longest-list matching.寬度Returns world X bounding extents of curves.

Weed 幾何

幅值Sets vector length; negative amplitude reverses its direction.圓Circle on a plane.構造平面Frame from an origin and two independent direction vectors.距離Euclidean point distance.等分曲線Returns count + 1 equal arc-length samples; closed curves include the repeated seam endpoint.劃分曲面Divides an untrimmed surface into (uCount + 1) branches of (vCount + 1) points.點積Vector dot product.求曲線上的點Evaluates the native curve parameter, without silently normalizing its domain.求長度處的點Evaluates arc length from the start.拉伸Creates an uncapped extrusion: a surface, open at both ends.SDL 直線Line from start, direction and length.放樣Creates an uncapped normal loft through ordered sections.移動曲線Moves an independently owned curve.移動點Moves points using longest-list point/vector matching.點Constructs a point from finite coordinates.點集Constructs points using longest-list matching independently in x, y and z.極座標點Creates a polar point sequence, optionally repeating the first point to close it.矩形Polyline rectangle from directed local X and Y domains, without corner fillets.旋轉曲線Rotates a curve in a plane by a radian angle.旋轉向量Rotates a vector around a nonzero axis by a radian angle.縮放曲線Nonuniformly scales a curve relative to a local plane.打散Splits a curve at native parameters strictly inside its domain.X 單位向量X-axis vector multiplied by factor.Y 單位向量Y-axis vector multiplied by factor.Z 單位向量Z-axis vector multiplied by factor.兩點向量Vector from first to second point, optionally unitized.XY 平面XY plane with the supplied origin.

Weed 資料樹幾何

平均點Computes the arithmetic point mean independently per nonempty branch.控制點曲線Creates one clamped NURBS from each control-point branch; these are control vertices, not interpolated samples.剔除曲線索引Removes one curve item per branch, appending the culling operation's item path.剔除重複點Removes points closer than tolerance within each branch, preserving the first representative and its order.展平曲線Collects curves in numeric branch order for a subsequent explicit loft or other list operation.展平點Collects points in branch order.移動曲線Moves matched curves by vectors, returning owned geometry.移動點Moves matched points by vectors.平面Constructs local frames from matched origins and X axes, with a shared independent Y direction.點分支數Returns the number of point branches as one scalar.點數Returns the number of points in each branch.點項Selects one point from each branch, retaining branch order in the flattened output.點集Constructs points with longest item and branch matching across coordinates.多段線Creates a polyline per branch, optionally closing it with a final segment.新增字首點Prepends a common ancestor index to every point-tree branch.矩形Constructs local rectangles on every frame.旋轉曲線Rotates matched curves within their local planes.縮放曲線Scales matched curves in local X and Y, keeping local Z unchanged.縮放點Scales points along world axes about matched centers.簡化曲線Removes common leading path indices from a curve tree.簡化向量Removes common leading vector-path indices.點排序Sorts point items by corresponding numeric keys independently in each matching branch.X 單位向量Scales the world X axis per factor, retaining branches.Y 單位向量Scales the world Y axis per factor, retaining branches.Z 單位向量Scales the world Z axis per factor, retaining branches.Y 座標Extracts world Y coordinates without changing point-tree paths.

Weed 資料樹數學

Weed 列表

加法Graph-friendly numeric longest-list addition.交叉引用Combines every left item with every right item, with right varying fastest.剔除索引Removes indexed items; indices optionally wrap, and duplicates remove an item only once.剔除數字Graph-friendly numeric culling by a repeating mask.按模式剔除Retains items where the repeating mask is true.分配Dispatches a list into the true and false sides of a repeating mask.項Retrieves an item with optional cyclic indexing; negative indices wrap only when wrap is enabled.長度Counts all items in a numeric list.最長列表Combines until the longer list ends, repeating the last element of the shorter list; either empty input gives an empty result.合併Concatenates lists in supplied order; branch merging is handled separately by WeedTrees.Create.乘法Graph-friendly numeric longest-list multiplication.數字項Graph-friendly list item lookup.分割槽Partitions a list into consecutive blocks; the final block may be shorter.反轉數字Reverses the item order.平移Positive shifts move items toward the beginning; without wrapping, shifted-off items are discarded.平移數字Graph-friendly cyclic numeric shift.最短列表Combines corresponding elements until the shorter input ends.排序Stable ascending sort of values by equally sized numeric keys.數字排序Graph-friendly ascending numeric sort.拆分Splits at a zero-based boundary; the boundary item belongs to the second list.編織Weaves lists by a repeating list-index pattern, skipping exhausted inputs.

Weed 幾何列表

Weed 曲線列表

Weed 實體列表

Weed 資料樹

Weed 網格

Weed 圖案

Weed 物理

Weed 曲面資料樹

Weed 噪聲