Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage ZeroBlender.package·originates fromworld 240544fe-7…

meshOps

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

by◐Deata·posted 16d ago
What it does

meshOps

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

TODO: describe this module.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

Polygon-level edit-mode operators with Blender semantics. They work on { vertices = {{x,y,z}}, faces = {{0-based ids}}, loose_edges = {{a,b}} } and keep n-gons, so the result stays an editable polygon mesh.

add(a: ?, b: ?) → void

argtypedescription
a?
b?

sub(a: ?, b: ?) → void

argtypedescription
a?
b?

mul(a: ?, s: ?) → void

argtypedescription
a?
s?

dot(a: ?, b: ?) → void

argtypedescription
a?
b?

cross(a: ?, b: ?) → void

argtypedescription
a?
b?

len(a: ?) → void

argtypedescription
a?

unit(a: ?) → void

argtypedescription
a?

key(a: ?, b: ?) → void

argtypedescription
a?
b?

newell(vs: ?, f: ?) → void

argtypedescription
vs?
f?

centroid(vs: ?, f: ?) → void

argtypedescription
vs?
f?

reversed(t: ?) → void

argtypedescription
t?

dedupe(ids: ?) → void

Drop consecutive duplicate ids (cyclically).

argtypedescription
ids?

edgeMap(mesh: ?) → void

argtypedescription
mesh?

get(a: ?, b: ?) → void

argtypedescription
a?
b?

compact(mesh: ?, keep: ?) → void

Remove vertices for which keep(i) is false (default: unreferenced), renumbering everything.

argtypedescription
mesh?
keep?

pruneLoose(mesh: ?) → void

Loose edges that became face edges are no longer loose.

argtypedescription
mesh?

faceLocator(vs: ?, faces: ?) → void

Returns fn(point, normal) -> index of the nearest face of (vs, faces).

argtypedescription
vs?
faces?

remapMaterials(oldVs: ?, oldFaces: ?, oldMat: ?, mesh: ?) → void

Material indices for new faces, taken from the nearest face of the old mesh.

argtypedescription
oldVs?
oldFaces?
oldMat?
mesh?

fan(v: ?, incident: ?, faces: ?, E: ?) → void

Ordered fan of faces around vertex v; nil when v is on an open boundary.

argtypedescription
v?
incident?
faces?
E?

cornerPatch(vs: ?, ring: ?, segments: ?, S: ?, R: ?, emit: ?) → void

Blender corner pattern for three bevelled edges meeting: concentric quad rings closed by a centre vertex (even segments) or triangle (odd).

argtypedescription
vs?
ring?
segments?
S?
R?
emit?

newv(p: ?) → void

argtypedescription
p?

at(i: ?) → void

argtypedescription
i?

place(q: ?) → void

argtypedescription
q?

ia(i: ?) → void

argtypedescription
i?

bevelEdges(mesh: ?, selKeys: ?, width: ?, segments: ?) → void

Edit-mode edge bevel (offset_type OFFSET, circular profile). selKeys: set of edge keys. Returns indices (1-based) of the new bevel faces.

argtypedescription
mesh?
selKeys?
width?
segments?

newv(p: ?) → void

argtypedescription
p?

ptId(v: ?, p: ?) → void

argtypedescription
v?
p?

emit(ids: ?, nn: ?, from: ?) → void

argtypedescription
ids?
nn?
from?

e2(ids: ?) → void

argtypedescription
ids?

bevelVerts(mesh: ?, vset: ?, offset: ?) → void

Edit-mode vertex bevel (affect='VERTICES'), one segment.

argtypedescription
mesh?
vset?
offset?

onEdge(v: ?, w: ?) → void

argtypedescription
v?
w?

loopcut(mesh: ?, startKey: ?, cuts: ?, slide: ?) → void

Loop cut across the quad ring through edge startKey. Returns the new vertex ids.

argtypedescription
mesh?
startKey?
cuts?
slide?

walk(a: ?, b: ?, fi: ?) → void

argtypedescription
a?
b?
fi?

nb(i: ?, other: ?) → void

argtypedescription
i?
other?

between(x: ?, y: ?) → void

argtypedescription
x?
y?

bridge(mesh: ?, edgeKeys: ?, faceSet: ?) → void

Bridge two edge loops (selected edges, or the boundaries of selected faces, which are removed). Returns new face indices, or nil plus Blender's message.

argtypedescription
mesh?
edgeKeys?
faceSet?

walk(start: ?, closed: ?) → void

argtypedescription
start?
closed?

rotator(center: ?, axis: ?, angle: ?) → void

argtypedescription
center?
axis?
angle?

spin(mesh: ?, Ek: ?, F: ?, steps: ?, angle: ?, center: ?, axis: ?) → void

Spin selected geometry. V/Ek/F: selected vertex set, edge-key set, face set (1-based). Returns the vertex ids of the last copy.

argtypedescription
mesh?
Ek?
F?
steps?
angle?
center?
axis?

weld(mesh: ?, thr: ?, onlySet: ?) → void

Merge vertices closer than thr. onlySet restricts merging to those ids. Duplicate faces left behind are removed, keeping one. Returns the count removed.

argtypedescription
mesh?
thr?
onlySet?

screw(vs: ?, faces: ?, loose: ?, o: ?) → void

SCREW modifier on a polygon mesh; sweeps every edge around the object axis.

argtypedescription
vs?
faces?
loose?
o?

addEdge(a: ?, b: ?) → void

argtypedescription
a?
b?

smartProject(vs: ?, faces: ?, sel: ?, out: ?, limit: ?, margin: ?) → void

Smart UV project: faces grouped by projection normal (angle limit), split into connected islands, projected flat, then packed column-first with one uniform scale. out[fi] = { {u,v}, ... } per face corner, for the selected faces.

argtypedescription
vs?
faces?
sel?
out?
limit?
margin?

place(sc: ?, commit: ?) → void

argtypedescription
sc?
commit?

pip(x: ?, y: ?, poly: ?) → void

Knife project: cutter edges projected along the view split the faces they cross (visible faces, or all with cut_through). Faces enclosed by a cutter loop are returned (1-based) for selection. A loop entirely inside a face is joined to its boundary by two bridge edges, as Blender does.

argtypedescription
x?
y?
poly?

segx(p1: ?, p2: ?, q1: ?, q2: ?) → void

argtypedescription
p1?
p2?
q1?
q2?

rayTri(O: ?, D: ?, a: ?, b: ?, c: ?) → void

argtypedescription
O?
D?
a?
b?
c?

projector(u: ?, v: ?, w: ?, eye: ?, ortho: ?) → void

View projector from a view rotation's axes (u right, v up, w back), eye, ortho flag.

argtypedescription
u?
v?
w?
eye?
ortho?

proj(p: ?) → void

argtypedescription
p?

ray(x: ?, y: ?) → void

argtypedescription
x?
y?

dirAt( ) → void

toEye( ) → void

proj(p: ?) → void

argtypedescription
p?

ray(x: ?, y: ?) → void

argtypedescription
x?
y?

dirAt(c: ?) → void

argtypedescription
c?

toEye(c: ?) → void

argtypedescription
c?

knifeProject(mesh: ?, o: ?) → void

argtypedescription
mesh?
o?

P(id: ?) → void

argtypedescription
id?

insideCut(x: ?, y: ?) → void

argtypedescription
x?
y?

centroidW(f: ?) → void

argtypedescription
f?

between(a: ?, b: ?) → void

argtypedescription
a?
b?

uvAt(fi: ?, w: ?) → void

argtypedescription
fi?
w?

det(q: ?) → void

argtypedescription
q?

solve(b: ?) → void

argtypedescription
b?

push(loop: ?, fi: ?, isIn: ?) → void

argtypedescription
loop?
fi?
isIn?

pos(id: ?) → void

argtypedescription
id?

inF(q: ?) → void

argtypedescription
q?

link(x: ?, y: ?) → void

argtypedescription
x?
y?

inner(ci: ?) → void

argtypedescription
ci?

d2(x: ?, y: ?) → void

argtypedescription
x?
y?

walk(a0: ?, b0: ?) → void

argtypedescription
a0?
b0?

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · ZeroBlender.package/modules/meshOps.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.