Step division

Hi Everyone,

I’m trying to define a surface in grasshopper. The idea is to be able to define the length of the object with a maximum length

if you define 500mm it creates an object of 500mm length,

but if you put 1500mm, it create 2 equal parts of 750mm

if you put 2300mm, it create equal part of 766mm

never doing a surface widder than 1000mm

Is this something possible?

Thanks!

Paul

step_division_2018Jan25a

step_division_2018Jan25a2

step_division_2018Jan25a.gh (6.2 KB)

1 Like

that’s perfect :ok_hand: Thanks!

Simple math.


step_division_2018Jan25b.gh (10.5 KB)


step_division_2018Jan25c.gh (8.3 KB)

Thanks, the first exemple was already perfect :smiley: