- var base_x = base_ring_radius * Math.cos(i * (2 * Math.PI / num_fingers));
- var base_y = base_ring_radius * Math.sin(i * (2 * Math.PI / num_fingers));
- console.log(base_x, base_y);
- var path = [[base_x, base_y, 0], [base_x, base_y, finger_height]];
+ var finger_angle = i / num_fingers;
+ var path = [];
+ for (var j = 0; j <= finger_points; j++) {
+ var angle = (finger_angle + finger_twirl * j / finger_points) * 2 * Math.PI;
+ var x = base_ring_radius * Math.cos(angle);
+ var y = base_ring_radius * Math.sin(angle);
+ path.push([x, y, finger_height * j / finger_points]);
+ }