hardSurface
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
hardSurface
<!-- 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/v2Hard-surface part kernel over bpy (meshBuf meshes). Builders write their vertices and faces straight into a meshBuf Mesh: a ring or profile is given as a point FUNCTION or a short authored outline, never as a mesh-sized table. K.evaluate returns a NEW Mesh (caller frees) with the part's Boolean cutters and polygon bevel applied (polygonTopology).
topo(name: ?) → void
| arg | type | description |
|---|---|---|
| name | ? |
face4(m: ?, a: ?, b: ?, c: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| m | ? | |
| a | ? | |
| b | ? | |
| c | ? | |
| d | ? |
new( ) → void
mesh(name: ?, m: ?, a: ?, b: ?) → void
K.mesh(name, mesh, mat): the part takes `mesh` (a meshBuf Mesh). The old list form K.mesh(name, vertices, faces, mat) is still accepted.
| arg | type | description |
|---|---|---|
| name | ? | |
| m | ? | |
| a | ? | |
| b | ? |
rounded(x0: ?, z0: ?, x1: ?, z1: ?, r: ?, n: ?) → void
Rounded rectangle outline (authored 2D points, 4*(n+1) of them).
| arg | type | description |
|---|---|---|
| x0 | ? | |
| z0 | ? | |
| x1 | ? | |
| z1 | ? | |
| r | ? | |
| n | ? |
bevel(o: ?, width: ?, segments: ?) → void
| arg | type | description |
|---|---|---|
| o | ? | |
| width | ? | |
| segments | ? |
profile(name: ?, points: ?, depth: ?, mat: ?, y: ?, width: ?) → void
Prism of an (x, z) outline, `depth` thick along y about y.
| arg | type | description |
|---|---|---|
| name | ? | |
| points | ? | |
| depth | ? | |
| mat | ? | |
| y | ? | |
| width | ? |
lathe(name: ?, stations: ?, mat: ?, axis: ?, c: ?, n: ?) → void
Surface of revolution: stations {{t, r}, ...} about `axis` through c.
| arg | type | description |
|---|---|---|
| name | ? | |
| stations | ? | |
| mat | ? | |
| axis | ? | |
| c | ? | |
| n | ? |
loft(name: ?, rings: ?, n: ?, point: ?, mat: ?, closed: ?, wrap: ?) → void
Loft through `rings` rings of n points; point(j, i) -> x, y, z (0-based). closed caps both ends; wrap=true joins a last ring that repeats the first onto the first (its vertices are not created).
| arg | type | description |
|---|---|---|
| name | ? | |
| rings | ? | |
| n | ? | |
| point | ? | |
| mat | ? | |
| closed | ? | |
| wrap | ? |
id(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
tube(name: ?, stations: ?, mat: ?, n: ?) → void
Tube through stations {x, ry, rz, z} with n sides; a last station equal to the first closes the tube on itself.
| arg | type | description |
|---|---|---|
| name | ? | |
| stations | ? | |
| mat | ? | |
| n | ? |
cut(target: ?, cutters: ?) → void
| arg | type | description |
|---|---|---|
| target | ? | |
| cutters | ? |
array(o: ?, count: ?, offset: ?) → void
count copies of the part's mesh, each `offset` further.
| arg | type | description |
|---|---|---|
| o | ? | |
| count | ? | |
| offset | ? |
sweep(name: ?, points: ?, radius: ?, mat: ?, closed: ?) → void
Round tube of `radius` along a path of points {x,y,z} (capped).
| arg | type | description |
|---|---|---|
| name | ? | |
| points | ? | |
| radius | ? | |
| mat | ? | |
| closed | ? |
norm(x: ?, y: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| y | ? | |
| z | ? |
evaluate(o: ?) → void
The part as drawn: a NEW Mesh (caller frees) with cutters subtracted and the polygon bevel applied.
| arg | type | description |
|---|---|---|
| o | ? |
free( ) → void
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.