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.