you simply need to now how long one surface is and any decent bot could do this.
lets only calculate it for 2d shape brushes, values are a bit different for cylinders with AlignToSide=True
you need to know the inner angles:
when you create the brush you generate a value "per 360°"
inenr angle= (per360 - 2) * 180° / per360
eg: for 32 sides the inner angle would be: 168,75 °
next thing you need to know is the radius, which is simply the offset from the rotation center to the surface, simply vectorical calculation.
assuming the radius be 512 units
radius is the hypothenusis,
the outer angle in the triangle is half the inner circle angle:
84,375°
so the middle ancle is 5,625 °
sin 5,625 ° = wallpolylength / radius
wall polylength= radius * sin 5,625° (= 50,18 for radius=512 and 32 sides)
complte formula is:
wallpolylength= Radius * sin ( 90° - 0,5 * inner angle)
wallpolylength= Radius * sin [ 90° - 0,5 * ( (per360 - 2) * 180° / per360) ]
However I dunno how to make a bot, this probably is done with c++ or something.
lets only calculate it for 2d shape brushes, values are a bit different for cylinders with AlignToSide=True
you need to know the inner angles:
when you create the brush you generate a value "per 360°"
inenr angle= (per360 - 2) * 180° / per360
eg: for 32 sides the inner angle would be: 168,75 °
next thing you need to know is the radius, which is simply the offset from the rotation center to the surface, simply vectorical calculation.
assuming the radius be 512 units
radius is the hypothenusis,
the outer angle in the triangle is half the inner circle angle:
84,375°
so the middle ancle is 5,625 °
sin 5,625 ° = wallpolylength / radius
wall polylength= radius * sin 5,625° (= 50,18 for radius=512 and 32 sides)
complte formula is:
wallpolylength= Radius * sin ( 90° - 0,5 * inner angle)
wallpolylength= Radius * sin [ 90° - 0,5 * ( (per360 - 2) * 180° / per360) ]
However I dunno how to make a bot, this probably is done with c++ or something.
Last edited: