// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Estimate objects needed for concentric rings // Not compiled or tested in-world // Setup: Use a spare owned prim. Set first radius, radial step, number of rings1..8 and maximum spacing. Owner touch prints sample coordinates. // Stop / restore: Remove/disable. Nothing is rezzed or moved. // Notes: Ring counts are independent; angular alignment between rings is not guaranteed. This estimates object count before construction. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Planning only. float FIRST_RADIUS=1.0; float RADIAL_STEP=1.0; integer RINGS=4; float MAX_SPACING=1.2; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(FIRST_RADIUS<=0.0||RADIAL_STEP<=0.0||RINGS<1||RINGS>8||MAX_SPACING<=0.0) { llOwnerSay("Invalid ring inputs."); return; } integer total; integer i; for(i=0;i