OpenWeed
可用参数化建模:以列表和树组织几何体,基于 Divooka 的精确 CAD 几何
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 数据树数学
绝对值Computes absolute values, preserving paths.加法Adds matched items.分支数Returns the number of branches as a scalar tree.余弦Computes cosine in radians, preserving paths.除法Divides matched items, rejecting zero denominators.区间Constructs directed intervals from matched endpoints.展平Returns all values in branch order for inspection or scalar-list APIs.长度Returns each branch's item count without changing its path.小于Returns numeric 1 for values below threshold and 0 otherwise, preserving branches.最大值Applies a lower bound independently to each value.乘法Multiplies matched items.取负Negates values, preserving paths.非Interprets zero as false and nonzero as true, returning the negated gate as numeric 0 or 1.圆周率Multiplies each value by pi.幂运算Raises matched bases to exponents, rejecting non-finite results.添加前缀Prepends a common ancestor index to every branch path without changing item order.弧度Converts degrees to radians.等分范围Produces steps+1 values in each directed domain, with one child branch per matched request.数列Appends an item index for each generated list, as an item-access component with list output does.正弦Computes sine in radians, preserving paths.平方根Computes real square roots, rejecting negative inputs.减法Subtracts matched items.值Creates one numeric value at path {0}.多个值Creates a numeric list at path {0}.
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 几何列表
幅值Sets each vector's signed amplitude.装配Collects independently modeled bodies as an assembly.边界区域Classifies nested planar loops independently in each branch, preserving holes and disconnected regions.差集Subtracts every cutter from each subject independently; all disconnected result bodies are retained in the subject's output model.复制Duplicates a curve the requested number of times.求长度处的点Evaluates normalized arc length on each curve.拉伸曲线Extrudes each profile independently with a common direction.拉伸区域Extrudes every region, keeping each input branch's independent bodies together.直线Constructs lines from matched starts and directions.移动曲线Moves matched curves by corresponding vectors.移动模型Moves models by longest-matched vectors without combining their identities.配对分支Merges corresponding curve items into two-item branches with longest-list matching.多边形Constructs a regular polygon whose first vertex lies on the plane's positive X axis.多段线分段Returns straight segments of a degree-one polyline in its original order.旋转复制Rotates independently owned copies through a list of angles.旋转向量Rotates vectors around a common axis.扫掠线边界Constructs the closed boundary of each line swept by its matched vector.切线Evaluates unit tangents at normalized arc lengths.Z 向量Constructs world Z vectors from a list of heights.
Weed 曲线列表
交替分支Selects alternating branches, retaining their paths and copying curve geometry.交替点Selects alternating point items in each branch, starting with even indices when first is true.包围盒中心Returns the center of the accurate union bounding box of a nonempty curve list.控制点Returns the control vertices of each curve in its own child branch.剔除点索引Removes one point index from each branch, appending the single index-operation output path.分组拉伸Extrudes each curve-group branch along Z by its corresponding height, keeping open profiles uncapped.交错Interleaves two equally sized lists, equivalent to merging paired singleton branches and then flattening.项Returns a curve from a list using cyclic or strict indexing.合并Concatenates two curve lists in source order.沿 X 镜像Mirrors a curve across the world YZ plane.分组沿 X 移动Moves each curve-group branch along X by its corresponding distance.矩形单元Constructs rectangular cells in the XY plane, one branch per X column and Y varying inside each branch.分组沿 X 缩放Copies a curve group for each X scale factor around a supplied center; each transformed group occupies one branch.顶点Returns a curve's control vertices, optionally reversing their order explicitly.宽度Returns the accurate X extent of each curve-group branch.
Weed 实体列表
加上向量Adds matched displacement vectors.面积Computes the trimmed area of each model item.面Extracts all trimmed faces into one branch per input model.标架Evaluates the underlying parameter frame of each single-face model at normalized coordinates; trimmed topology stays on the source model.高度Returns each model's world Y bounding extent.项Selects one item from each model branch in branch order.移动复制Translates one assembly independently by every supplied displacement.定向Orients matched models from local source frames onto one destination frame.沿 Y 反转Reverses each plane's Y axis, which also reverses its normal.缩放模型Scales matched assemblies about world-axis frames at supplied centers, preserving Z unless requested otherwise.排序Sorts each model branch by supplied area or other numeric keys; reversing is explicit.宽度Returns each model's world X bounding extent.X 向量Constructs X-axis displacement vectors.Y 向量Constructs Y-axis displacement vectors.
Weed 数据树
加法Graph-friendly numeric longest-tree addition.创建数据树Creates a tree in numeric lexicographic path order, concatenating duplicate branches in input order.展平数字Graph-friendly numeric flattening into {0}.翻转矩阵Transposes a rectangular tree: item indices become branches; ragged input is rejected instead of inventing nulls.翻转数字Graph-friendly rectangular numeric transpose.升级数字为数据树Graph-friendly numeric graft, appending the item index to each source path.匹配Matches two item-access trees using longest branches and longest lists.数字Creates a numeric tree with sorted, merged paths.简化Removes common leading indices while retaining at least one index in each path.简化数字Graph-friendly removal of common path prefixes.修剪路径Removes trailing path indices and merges resulting branches.
Weed 网格
面积Total mesh surface area in squared model units.Catmull-Clark 细分Catmull-Clark subdivision with cubic boundary rules.网格集合Wraps an owned mesh copy as a one-item collection.由点创建Creates an open quad mesh from a U-major rectangular point grid; optional V wrapping closes a periodic seam without duplicate vertices.由数据树创建Creates a quad mesh from a rectangular point tree in its supplied branch order.合并Combines meshes without welding or changing vertex order.合并顶点Combines two meshes without welding or discarding disconnected components.平面网格Constructs a regular quad grid on a plane over the given local domains.读取 OBJReads an OBJ mesh through the existing geometry importer; disconnected components are preserved.三角化Splits every quad along its shorter diagonal, choosing A-C on ties.焊接Returns an independently owned mesh with merged nearby vertices.
Weed 图案
拉伸轮廓Extrudes each supplied profile by the same vector; closed profiles may be capped explicitly.管道Builds solid round rails from curves, preserving independent bodies for fabrication or assembly.尖拱Two straight legs and two interpolated upper ribs form a pointed arch; span and rise are model dimensions.轮廓蒙皮Builds a periodic quad skin from equal parameter samples on ordered closed profiles.重复曲线Copies a profile along a vector at every distance, preserving input order.重复多条曲线Copies a family of curves at each distance, with curve index varying fastest.超级公式轮廓Closed superformula profiles at given heights, with linear taper and rotation in radians per model unit.波浪网格Samples a sinusoidal height field on a U-major rectangular grid for mesh and subdivision studies.波浪轮廓Samples a sine-displaced closed strip in the XZ plane, for extruded fins and rib studies.多条波浪轮廓Creates a row of independently phased wavy profiles translated along X.
Weed 物理
推进Advances an immutable snapshot by additional frames, preserving particle positions, velocities, rest lengths, fixed anchors and the original integration settings.材料Constructs material values.网格Returns an owned preview mesh from a simulation result.重置Creates a rest-state snapshot.设置Copies a cloth mesh, optional fixed vertex indices, fixed obstacle meshes and a uniform force per particle.模拟Runs deterministically from the setup's rest state for a fixed frame count.