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
Now I understand — you're seeing facet seams/edge lines on the mesh surface (from unwelded vertices). Let me fix the shading and massively upgrade the nodes.
Now the viewport — welded smooth shading kills the facet seam lines on the mesh surface.
Now let me rewrite the advanced nodes properly. First the imports and shared helpers:
Now the Platonic + L-System rewrite:
Now the L-System — full rewrite with branch-width output:
Now PolyWire + Sweep — both get rotation-minimising frames and width tapering:
Now the Sweep node with parallel-transport frames and a scale ramp:
Now Clip — a real Sutherland–Hodgman polygon cut, and PolyBevel — a real edge bevel:
Now Fuse (spatial hash, O(n)) and PolySmooth (volume-preserving Taubin):
Now Ripple (multi-source interference) and Pattern Displace (proper Worley variants):
Finally Normal (cusp angle) and Measure (real curvature):
Now update the presets to use the improved node parameters:
Now I understand — those were facet seam lines on the mesh surface, not the ground grid. Fixed, plus a deep rewrite of every new node.
🩹 The surface lines — fixed
The cause was normal computation. Operators like Extrude, Bevel, Copy-To-Points and Subdivide emit unshared duplicate points at the same location. Three.js
computeVertexNormals()averages only per index, so every seam got two different normals → a hard visible line across the surface at every row/column/division.I added
weldedNormals()ingeo.ts: it accumulates area-weighted face normals, then buckets them by quantised position so coincident points share one averaged normal. The viewport now uploads these instead of callingcomputeVertexNormals(). Surfaces render seamlessly — the division lines are gone.🔨 Nodes rewritten (not tweaked — rebuilt)
Platonic Solid → now a geodesic generator. Added Geodesic Splits (recursive edge-midpoint subdivision, quad fan for n-gons) and Spherify blend. You can build true icospheres and geodesic domes.
L-System → complete turtle rewrite. 6 grammars (Oak/Fern/Bush/Spiral/Willow/Custom — editable rule string), full
/ \roll axes, gravity bend that droops branches by depth, seeded randomness, and it now writes a realpscalewidth attribute per point.PolyWire → uses rotation-minimising (parallel transport) frames so tubes never twist or flip. Reads
pscaleso trunks taper naturally into twigs, plusnone / flat / roundcaps and a point budget guard.Sweep → parallel-transport frames, start→end scale ramp, roll offset, closed-profile detection, and sweeps all backbone curves not just the first.
Clip → was fake (deleted whole faces). Now a true Sutherland–Hodgman plane cut with arbitrary plane normal, generating new interpolated boundary points with lerped colours, and it clips polylines too.
PolyBevel → was just an inset. Now a real solid bevel: per-face inset + shared-edge chamfer bridges + angle-sorted corner fans. Produces genuine hard-surface rounded edges.
Fuse → was O(n²). Now a uniform spatial hash (27-cell neighbour search, linear time) with optional cluster averaging and degenerate-primitive cleanup.
PolySmooth → now Taubin λ/μ volume-preserving smoothing (won't shrink your model), with position-welded connectivity and open-border pinning.
Ripple → multiple interfering emitters, 4 wave shapes (sine/gerstner/square/saw), 4 falloff curves, planar-vs-spherical distance.
Pattern Displace → 9 patterns including three real Worley variants (cell / crack / bubble), ridged and billow fractals, contrast gain, mean-removal so it displaces symmetrically, and optional write-to-Cd.
Normal → adds Welded (seam-free) and Cusp (break-angle sharp edges) modes plus flip.
Measure → real mean-curvature estimation from welded neighbour rings, plus slope, occlusion, and 4 scientific colour ramps (viridis, magma, thermal, ice) with contrast/invert.
Presets updated to showcase them: L-System Oak, Geodesic Worley Crystal, Swept Twisting Ribbon, Interference Ripples, Beveled Hard Surface, Fern Field.
Files built:
src/engine/geo.ts,src/components/Viewport.tsx,src/engine/sops.ts,src/engine/graph.ts
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.