元编程参考文档

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 噪声