Profile


Name
TIM crash
ID
103200
Shared with
Public
Parent
None
Children
None
Created on
December 03, 2019 at 03:23 AM UTC
Updated on
December 03, 2019 at 03:23 AM UTC
Description

On puzzle 1766, this simple repetitive loop generates a crash on some solutions. The exact spot may vary.

Best for


Code


function SphereSelect ( start_idx, end_idx, radi ) selection.DeselectAll () for ii = 1, structure.GetCount () do for jj = start_idx, end_idx do if structure.GetDistance ( ii , jj ) < radi then selection.Select ( ii ) end end end end function Snuff () print ( "insert cuts" ) structure.InsertCut ( 64 ) structure.InsertCut ( 66 ) print ( "select" ) selection.DeselectAll () selection.SelectRange ( 64, 66 ) print ( "idealize" ) structure.IdealizeSelected () print ( "delete cuts" ) structure.DeleteCut ( 64 ) structure.DeleteCut ( 66 ) print ( "select sphere" ) SphereSelect ( 64, 66, 10 ) print ( "wiggle" ) structure.WiggleSelected ( 12 ) end for ii = 1, 30 do print ( "run " .. ii ) Snuff () end

Comments