// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Staggered brick row coordinates // Not compiled or tested in-world // Setup: Place in a spare prim. Set wall width, nominal brick length and gap. Owner touch prints results without altering the scene. // Stop / restore: Disable or remove. No prim properties are changed. // Notes: Coordinates are horizontal intervals. Odd rows start with half a nominal brick; this is a preview rather than a mesh generator. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Owner-only calculation. float WALL=4.0; float BRICK=0.8; float GAP=0.02; default { touch_start(integer detectedCount) { if (llDetectedKey(0)!=llGetOwner()) return; if(WALL<=0.0||BRICK<=0.0||GAP<0.0||WALL/BRICK>16.0) { llOwnerSay("Use positive dimensions and at most16 bricks per row."); return; } integer row; for(row=0;row<2;++row) { float x=0.0; float length=BRICK; if(row==1)length=BRICK*0.5; string report="Row "+(string)row+":"; while(xWALL)end=WALL; report+=" ["+(string)x+","+(string)end+"]"; x=end+GAP; length=BRICK; } llOwnerSay(report); } } }