// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Size a ring-sector floor panel // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set outer radius greater than inner radius and sweep0..360 degrees. Touch to print the plan privately. // Stop / restore: Remove/disable; calculations do not alter objects. // Notes: Boundary edges are circular; straight-sided mesh approximations have different areas. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Calculation only. float OUTER=6.0; float INNER=3.0; float SWEEP=45.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(INNER<0.0||OUTER<=INNER||SWEEP<=0.0||SWEEP>360.0) { llOwnerSay("Invalid sector."); return; } float angle=SWEEP*DEG_TO_RAD; llOwnerSay("Area="+(string)(0.5*angle*(OUTER*OUTER-INNER*INNER))+" outer arc="+(string)(angle*OUTER)+" inner arc="+(string)(angle*INNER)); } }