Segment of a circle
-
Hi sketchupers,
I have a problem I cant work out the solution to:
I want DC to draw a segment of a circle including n degrees.
i.e. I want to be able to divide a circle into any number of (pie slice shaped) sections based on a variable.
any ideas?
A bit more detail:
I created a dynamic component for drawing out a tower form based on the motion of a mechanical iris, it's here: (or in the 3d warehouse)
http://ianruaraidh.wordpress.com/2009/11/05/using-sketchup-dynamic-components-2/I wanted to make a new improved version, which had as a parameter the number of segments the tower was divided into. I realise I can do this with triangles again by scaling the triangle differently in two directions to alter its shape and so the angle at its vertex. However, what I would really like to do is base it on segments of a circle ( so that the outer edge of the tower is more obviously different from the other edges ) so the scaling technique will not work as it will distort the curve.
I could of course remake the original (with a fixed number of segments) with a curved edge, or build different versions for each number of divisions, but both of these seems like a cop out, so any ideas?
Advertisement