ScratchData LogoScratchData
Back to gtoal's profile

Triangle drawing with incircles

GTgtoal•Created July 19, 2016
Triangle drawing with incircles
10
4
361 views
View on Scratch

Instructions

I remixed PullJosh's incircle calculator to see if it could be used for drawing triangles. It works but this version naively uses a recursion stopper that is just based on depth of recursion which is very inefficient. A better solution would look at the size of the triangle remaining to be filled. However I haven't coded that up yet because I need to think about the case where we have a long thin triangle - I think the test has to be done separately for each of the three recursive calls rather than once at the entrance to the recursion - which seems wrong. On pause until I've thought about this a little more... (it was a quick hack while at the coffee shop!)

Description

Incircle maths from PullJosh.

Project Details

Project ID116652374
CreatedJuly 19, 2016
Last ModifiedJuly 20, 2016
SharedJuly 20, 2016
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root