// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Pack display points on a triangular lattice // Not compiled or tested in-world // Setup: Use a spare owned prim. Set positive SPACING. Owner touch prints sample coordinates. // Stop / restore: Remove/disable. Nothing is rezzed or moved. // Notes: This is a triangular point lattice, useful for dense round-item arrangements; it does not check actual object footprints. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Planning only. float SPACING=1.2; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(SPACING<=0.0) { llOwnerSay("Positive spacing required."); return; } integer row; integer column; for(row=0;row<3;++row)for(column=0;column<4;++column) { float offset=0.0; if(row%2)offset=0.5; llOwnerSay((string)); } } }