unsigned int epicycloid_pattern_1 (real diameter_inner, real diameter_outer_start, real diameter_outer_end, real step, int arc_divisions, unsigned int offsets, [vectorColors::default_color_vector ])
|
Function |
Draws a pattern consisting of epicycloids. The outer circle rolls
around the circumference of the inner circle and a Point on the
outer circle traces an epicycloid.
If offsets is greater than 1, the outer circle is rotated offset times around the center of the inner circle by 360 / offsets (starting from the outer circle's original position). From each of these new positions, an epicycloid is drawn. While diameter_outer_start is
greater than or equal to diameter_outer_end, the diameter of the
outer circle is reduced by step, and another set of epicycloids is
traced, as described above. Each time the diameter of
the outer circle is reduced, a new The arguments:
Example: epicycloid_pattern_1(5, 3, 3, 1, 72); current_picture.output(Projections::PARALLEL_X_Z);
Example: default_focus.set(2, 5, -10, 2, 5, 10, 10); epicycloid_pattern_1(5, 3, 3, 1, 36); current_picture.output();
|