Fencing with Fences
README.md
hedge
Procedural hedge-fence generator. Sweeps a noise-displaced superellipse foliage section along a polyline or elliptical-arc centerline and returns Geo-style flat-array geometry ({ positions, normals, uvs, indices }) for Geo.mesh / Geo.merge. Renders best with the preseed.shaders.hedge_leaf material.
geom(spec)— a hedge run. Centerline frompath(polyline) orellipse = { a, b, t0?, t1? }. Shape viaheight,width,boxiness(dome → crisp trim),taper, and acrowntreatment:flat,scallop,crenel, orbillow(withcrownDepth/crownPeriod/meander).piers = { every?, atEnds?, finial = "ball" | "cone" }adds pilaster masses with finials along the run.noise,res,sectionPoints, andseedcontrol surface detail and density.topiary(spec)— a freestanding clipped specimen with its base at y = 0:kind = "ball" | "cone" | "spiral", sized byr/h.
UVs carry (arclength in meters, height fraction). Open runs are closed with flat trimmed end caps; full ellipses weld seamlessly.