// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Helical display layout // Not compiled or tested in-world // Setup: Put in a spare prim you own. Set RADIUS, HEIGHT and TURNS. Touch to print offsets; add your chosen centre later. // Stop / restore: Disable or remove the script. It only reports to its owner and does not change prim properties. Reset clears its temporary state. // Notes: Samples include both endpoints. Points are evenly spaced in parameter, and for a constant-radius helix this also gives equal arc intervals. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Owner-only calculation; no scene changes. float RADIUS = 2.0; float HEIGHT = 4.0; float TURNS = 1.5; default { touch_start(integer detectedCount) { if (llDetectedKey(0) != llGetOwner()) return; if (RADIUS <= 0.0) { llOwnerSay("Use a positive radius."); return; } integer i; for (i = 0; i < 8; ++i) { float t = (float)i / 7.0; float angle = TWO_PI * TURNS * t; llOwnerSay((string)i + ": " + (string)); } } changed(integer change) { if (change & CHANGED_OWNER) llResetScript(); } }