Log inGet started
World

Fencing with Fences

Branchmain
Branchesmain
Commitc0197a6317

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 from path (polyline) or ellipse = { a, b, t0?, t1? }. Shape via height, width, boxiness (dome → crisp trim), taper, and a crown treatment: flat, scallop, crenel, or billow (with crownDepth / crownPeriod / meander). piers = { every?, atEnds?, finial = "ball" | "cone" } adds pilaster masses with finials along the run. noise, res, sectionPoints, and seed control surface detail and density.
  • topiary(spec) — a freestanding clipped specimen with its base at y = 0: kind = "ball" | "cone" | "spiral", sized by r / h.

UVs carry (arclength in meters, height fraction). Open runs are closed with flat trimmed end caps; full ellipses weld seamlessly.