meshProxy
The bpy mesh data views for the ZeroBlender session: `Mesh`, `MeshVertex`, `MeshPolygon`, `MeshEdge`, `MeshLoop`, UV layers, and the `bmesh` module and `bmesh.ops`. Every sequence (`mesh.vertices`, `mesh.polygons`, `bm.faces`, ...) is a lazy view over the session's meshBuf stores…
meshProxy
The bpy mesh data views for the ZeroBlender session: Mesh, MeshVertex,
MeshPolygon, MeshEdge, MeshLoop, UV layers, and the bmesh module and
bmesh.ops. Every sequence (mesh.vertices, mesh.polygons, bm.faces, ...)
is a lazy view over the session's meshBuf stores, so Python scripts read and
write vertex positions, face data and UVs in engine buffers without copying the
mesh into Luau tables.
Called by blenderSession, which installs it once per session with
MeshProxy.install(S, helpers) and uses the returned meshProxy,
vertexProxy, faceProxy, edgeProxy, bmeshProxy and bmeshOps.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2bpy mesh-data proxies over meshBuf meshes (Mesh, MeshVertex, MeshPolygon, MeshLoop, MeshEdge, MeshLoopTriangle, UV layers, BMesh and bmesh.ops). Every sequence is lazy: it answers len and item(i), so walking one never builds a list. An item proxy is one small table naming (mesh, index); a value read off it (a co Vector) is one small table the script holds. A mesh record is { name, geo = meshBuf Mesh, materials = {...}, smooth, smooth_angle, proxy }. Edits go straight into geo's substrate stores.
install(S: ?, h: ?) → void
| arg | type | description |
|---|---|---|
| S | ? | |
| h | ? |
dirty( ) → void
seq(name: ?, lenFn: ?, at: ?, extra: ?, setf: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| lenFn | ? | |
| at | ? | |
| extra | ? | |
| setf | ? |
len( ) → void
at(_: ?, i: ?) → void
| arg | type | description |
|---|---|---|
| _ | ? | |
| i | ? |
get(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
iter( ) → void
idList(name: ?, W: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| W | ? |
coWrite(V: ?) → void
A Vector over vertex i's position; writes go back to the store.
| arg | type | description |
|---|---|---|
| V | ? |
coVector(g: ?, i: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| i | ? |
uvWrite(V: ?) → void
| arg | type | description |
|---|---|---|
| V | ? |
nums(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
faceSmooth(mesh: ?, f: ?) → void
Shading: per-face smooth flags (geo.SMF, one word per face) when faces differ; mesh.smooth when they all agree.
| arg | type | description |
|---|---|---|
| mesh | ? | |
| f | ? |
setFaceSmooth(mesh: ?, f: ?, v: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| f | ? | |
| v | ? |
setAllSmooth(mesh: ?, v: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| v | ? |
cornerNormal(mesh: ?, c: ?) → void
Corner normals as Blender reports them: custom split normals when set, smooth faces the vertex normal, flat faces the face normal.
| arg | type | description |
|---|---|---|
| mesh | ? | |
| c | ? |
vertSelected(g: ?, i: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| i | ? |
get(key: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| P | ? |
set(key: ?, v: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| v | ? | |
| P | ? |
vertexProxy(mesh: ?, g: ?, i: ?, bm: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? | |
| i | ? | |
| bm | ? |
get(key: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| P | ? |
set(key: ?, v: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| v | ? | |
| P | ? |
faceProxy(mesh: ?, g: ?, f: ?, bm: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? | |
| f | ? | |
| bm | ? |
get(key: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| P | ? |
loopProxy(mesh: ?, g: ?, c: ?, bm: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? | |
| c | ? | |
| bm | ? |
edgeSel(g: ?, e: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| e | ? |
get(key: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| P | ? |
set(key: ?, v: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| v | ? | |
| P | ? |
edgeProxy(mesh: ?, g: ?, e: ?, bm: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? | |
| e | ? | |
| bm | ? |
get(key: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| P | ? |
triProxy(mesh: ?, g: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? | |
| t | ? |
get(key: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| P | ? |
set(key: ?, v: ?, P: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| v | ? | |
| P | ? |
resetUV(g: ?, L: ?) → void
Blender's default UV for a new first layer: each quad fills 0..1, other n-gons sit on a unit circle.
| arg | type | description |
|---|---|---|
| g | ? | |
| L | ? |
layerProxy(mesh: ?, g: ?, L: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? | |
| L | ? |
idx( ) → void
uvLayers(mesh: ?, g: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? |
byKey(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
fromPydata(g: ?, verts: ?, edges: ?, faces: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| verts | ? | |
| edges | ? | |
| faces | ? |
cornerNormals(mesh: ?, g: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? | |
| g | ? |
meshProxy(mesh: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? |
g( ) → void
made(name: ?, mesh: ?, g: ?, ids: ?, kind: ?) → void
A BMesh owns its own meshBuf mesh; to_mesh copies it into a mesh record.
| arg | type | description |
|---|---|---|
| name | ? | |
| mesh | ? | |
| g | ? | |
| ids | ? | |
| kind | ? |
selFromGeom(geom: ?) → void
| arg | type | description |
|---|---|---|
| geom | ? |
bmeshProxy(mesh: ?) → void
| arg | type | description |
|---|---|---|
| mesh | ? |
G( ) → void
bmOf(a: ?, kw: ?) → void
| arg | type | description |
|---|---|---|
| a | ? | |
| kw | ? |
faceSet(g: ?, list: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| list | ? |
emit(f: ?, cs: ?) → void
| arg | type | description |
|---|---|---|
| f | ? | |
| cs | ? |
mk(lo: ?, hi: ?) → void
| arg | type | description |
|---|---|---|
| lo | ? | |
| hi | ? |
v(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
ms(k: ?) → void
| arg | type | description |
|---|---|---|
| k | ? |
face(list: ?) → void
| arg | type | description |
|---|---|---|
| list | ? |
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.