meshEdit
Blender edit-mode operations on meshBuf Meshes, in place, with no mesh-sized Luau tables. Used by `bpy` (B.ops.mesh / B.ops.transform, SUBSURF modifier).
meshEdit
Blender edit-mode operations on meshBuf Meshes, in place, with no mesh-sized Luau tables. Used by bpy (B.ops.mesh / B.ops.transform, SUBSURF modifier).
Selection lives on the mesh: m.selMode ("VERT" | "EDGE" | "FACE") and m.SEL (per vertex, per MB.edges(m) edge id, or per face).
selectAll(m, action)— "SELECT" | "DESELECT" | "INVERT";selectMode(m, mode)(clears the selection)selectedVerts(m)-> W flags, count;median(m)-> x, y, ztranslate(m, v),resize(m, v, center?),rotate(m, angle, axis, center?)— on the selected vertices; center defaults to the selection median.v/centerare{x,y,z},{x=,y=,z=}or a vector.extrudeRegion(m, t)— FACE mode; selected faces become the moved caps (keep indices, stay selected), side quads appended; originals kept flipped when the region touches an open boundary.inset(m, thickness, depth, individual?)— FACE mode; region (default) or per-face.subdivide(m, cuts)— all faces selected; cuts=1 simple split, cuts>1 grid split of quads.subsurf(m, levels, simple)-> NEW Mesh (caller frees). Catmull-Clark with Blender boundary rules (boundary vertex 3/4 p + 1/8 neighbours, boundary edge midpoints, non-manifold vertices fixed).triangulateFace=MB.triangulateFace.
Material slots (FM) and UV layers are carried onto every created face.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Blender edit-mode operations on meshBuf Meshes, in place. Selection lives on the mesh: m.selMode ("VERT" | "EDGE" | "FACE") and m.SEL (one word per vertex, per MB.edges(m) edge id, or per face). Every per-element scratch array is a meshBuf store, freed before returning; the only Luau values are fixed-size locals.
xyz(v: ?) → void
{x,y,z} table, {x=,y=,z=} table or a Luau vector -> three numbers.
| arg | type | description |
|---|---|---|
| v | ? |
unit(x: ?, y: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? |
cross(ax: ?, ay: ?, az: ?, bx: ?, by: ?, bz: ?) → void
| arg | type | description |
|---|---|---|
| ax | ? | |
| ay | ? | |
| az | ? | |
| bx | ? | |
| by | ? | |
| bz | ? |
finite(x: ?) → void
| arg | type | description |
|---|---|---|
| x | ? |
copyUV(m: ?, dst: ?, src: ?) → void
Copy every UV layer's value at corner src onto corner dst.
| arg | type | description |
|---|---|---|
| m | ? | |
| dst | ? | |
| src | ? |
nextIn(c: ?, s: ?, e: ?) → void
The corner after c in its face [s,e).
| arg | type | description |
|---|---|---|
| c | ? | |
| s | ? | |
| e | ? |
selectedVerts(m: ?) → void
Flags (W, one word per vertex: 1 = selected) of the vertices the selection covers in its mode, and how many.
| arg | type | description |
|---|---|---|
| m | ? |
median(m: ?) → void
Median of the selected vertices (Blender's default edit-mode pivot).
| arg | type | description |
|---|---|---|
| m | ? |
selectAll(m: ?, action: ?) → void
action: "SELECT" | "DESELECT" | "INVERT", over selMode's domain.
| arg | type | description |
|---|---|---|
| m | ? | |
| action | ? |
selectMode(m: ?, mode: ?) → void
Switch the selection domain; the selection is cleared.
| arg | type | description |
|---|---|---|
| m | ? | |
| mode | ? |
eachSelected(m: ?, fn: ?) → void
| arg | type | description |
|---|---|---|
| m | ? | |
| fn | ? |
translate(m: ?, v: ?) → void
| arg | type | description |
|---|---|---|
| m | ? | |
| v | ? |
resize(m: ?, v: ?, center: ?) → void
Scale by v about center (default: median of the selection).
| arg | type | description |
|---|---|---|
| m | ? | |
| v | ? | |
| center | ? |
rotate(m: ?, angle: ?, axis: ?, center: ?) → void
Rotate by angle (radians) about axis "X" | "Y" | "Z" through center (default: median).
| arg | type | description |
|---|---|---|
| m | ? | |
| angle | ? | |
| axis | ? | |
| center | ? |
extrudeRegion(m: ?, t: ?) → void
Extrude the selected faces (FACE mode) by t. The selected faces become the moved caps (same face indices, still selected); side quads are appended for each region boundary edge. When the region touches an open mesh boundary the original faces are kept, flipped (Blender), so a lone plane becomes a solid.
| arg | type | description |
|---|---|---|
| m | ? | |
| t | ? |
insetIndividual(m: ?, t: ?, depth: ?) → void
Inset the selected faces (FACE mode). Region inset (default) offsets the selection's boundary inward by thickness; individual insets each face. depth moves the inner faces along their normals. The inner faces keep the selected faces' indices (and stay selected); side quads are appended.
| arg | type | description |
|---|---|---|
| m | ? | |
| t | ? | |
| depth | ? |
insetRegion(m: ?, t: ?, depth: ?) → void
| arg | type | description |
|---|---|---|
| m | ? | |
| t | ? | |
| depth | ? |
inset(m: ?, thickness: ?, depth: ?, individual: ?) → void
| arg | type | description |
|---|---|---|
| m | ? | |
| thickness | ? | |
| depth | ? | |
| individual | ? |
subdivOnce(m: ?, smooth: ?) → void
One level of Catmull-Clark (smooth) or simple subdivision into a NEW mesh. Vertices: the originals (smoothed), one per edge (MB.edges order), one per face. Each n-gon becomes n quads {v, edge(v,next), face, edge(prev,v)}, in face order. Boundaries follow Blender: a boundary vertex with two boundary edges moves to 3/4 p + 1/8 (its boundary neighbours), boundary edge points are midpoints; vertices on non-manifold edges or with more than two boundary edges stay put. Material slots carry per face; UVs are interpolated linearly (corner, edge mid, face centre); loose edges are split at their midpoint.
| arg | type | description |
|---|---|---|
| m | ? | |
| smooth | ? |
subsurf(m: ?, levels: ?, simple: ?) → void
SUBSURF: `levels` levels of Catmull-Clark (simple=true: linear) into a NEW mesh (levels 0 returns a copy). The caller frees it.
| arg | type | description |
|---|---|---|
| m | ? | |
| levels | ? | |
| simple | ? |
subdivide(m: ?, cuts: ?) → void
Every face must be selected (FACE mode). cuts=1 is one simple subdivision level; cuts>1 splits each quad into a (cuts+1)^2 grid (quads only), edge points shared between faces. The result replaces m; every face is selected.
| arg | type | description |
|---|---|---|
| m | ? | |
| cuts | ? |
ep(x: ?, y: ?, k: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| k | ? |
g(i: ?, j: ?) → void
| arg | type | description |
|---|---|---|
| i | ? | |
| j | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.