i think you dont understand that i dont want those lines in the viewport i mean there…
- User
i think you dont understand that i dont want those lines in the viewport i mean there are lines which are on the surface/mesh not the grid that shows like how many divisions or columns or rows there are. and also rewrite new nodes again but refine those nodes even more better because those nodes are still not that good
Assistant
I understand now — you mean the wireframe/edge lines drawn on top of the shaded mesh. Let me fix that and properly rewrite the new nodes with far better algorithms.
Now the advanced node library with genuinely superior algorithms:
Now let me remove the old duplicate node definitions from sops.ts and wire everything up.
Now let me wire in the advanced ops and fix the viewport surface lines.
Now the viewport fix — removing surface edge lines and improving shading:
Build passes. Here's what changed:
1. Removed the surface edge lines
Those were the wireframe overlay drawn on top of the shaded mesh (showing every row/column division).
- The
+wirebutton is renamededgesand is strictly opt-in — default is a clean, smooth shaded surface with no lines on it. - The mesh material now uses polygon offset so if you do turn edges on, they sit cleanly on top instead of z-fighting into speckled lines.
- The orange curve overlay is now auto-hidden when the geometry contains no polylines (it was always-on before and could draw stray lines).
- The mesh now respects authored normals from the Normal SOP instead of always recomputing, so smoothing groups actually show up as smooth instead of faceted.
2. Node rewrite — real algorithms this time
I moved all the advanced ops into
src/engine/sopsAdv.tswhich overrides the registry. The substance:PolyWire & Sweep — parallel-transport frames. The old versions built a frame per point from scratch, which makes tubes violently spin at every curve inflection. Both now use rotation-minimising frames with residual-twist redistribution on closed loops, so seams line up. PolyWire also reads a
@widthattribute, tapers to a tip, and can dome the ends with rounded caps.Clip — actual Sutherland–Hodgman clipping. It was just deleting faces on one side. Now it genuinely cuts polygons at the plane, interpolating both position and colour at the new vertices, and can fan-fill the resulting hole. Takes an arbitrary plane normal, not just world axes.
Fuse — spatial hash grid. Was O(n²) — unusable past a few thousand points. Now linear time with a 27-cell neighbour scan, optional position averaging, and proper winding-safe degenerate collapse (the old
Setde-dupe scrambled face order).PolySmooth — Taubin λ/µ. Plain Laplacian smoothing collapses your model. Taubin alternates a shrink pass with an inflate pass so volume is preserved. Also detects and pins open borders, and can smooth colour.
Platonic — geodesic mode. Added a cube, fixed the dodecahedron face list (it was wrong), exact circumradius normalisation, and recursive edge-split-and-project subdivision for uniform geodesic spheres.
L-System — full turtle. Roll operators (
\/), gravitropism, per-branch width decay written as a@widthattribute that PolyWire consumes, bark→tip colour ramp, deterministic seeded jitter, 5 grammars plus a custom rule editor.Displace — 8 patterns. Worley F1 / F2-F1 cracks / cell-ID plates, ridged and billowy fractals, checker, radial, waves. Plus bias/contrast shaping, animation, and optional colour output.
Ripple — 4 wave types. Radial, planar, spiral, and multi-source interference, with 4 falloff curves and selectable displacement direction.
Normal — cusp angle mode. Only averages faces within a threshold, so hard edges stay hard.
Measure — 6 metrics, 5 colour ramps. Height, radius, curvature, slope, exposure, noise — with percentile trimming so one outlier doesn't flatten your gradient, plus viridis/magma/terrain/ice/fire ramps.
Bevel — multi-segment rounded. Concentric rings with a sine-arc profile instead of a single flat inset.
3. Three new nodes
- Voronoi Fracture — shatters a mesh into shards, explodes and spins them
- Carve / Resample — trims polylines by U range with arc-length resampling (animate a tree growing)
- Falloff Deform — magnet-style soft-selection translate/scale/twist with smoothstep weighting
4. New presets
L-System Tree, Geodesic Worley Crystal, Swept Ribbon Loop, Wave Interference Pool, Shattered Icosahedron, Beveled Clipped Tower, Magnet Falloff Sculpt.
Files built:
src/engine/sops.ts,src/engine/sopsAdv.ts,src/components/NetworkEditor.tsx,src/engine/graph.ts,src/components/Viewport.tsx,src/App.tsx- The
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.