- if (g->size == INVOLUTE_SMALL)
- {
- PUSH(3, 4, 0); /* tooth left 1 */
- PUSH(0, 4, 4); /* tooth top middle */
- }
- else if (g->size == INVOLUTE_MEDIUM)
- {
- PUSH(3, 4, 0); /* tooth left 1 */
- PUSH(0, 4, 3); /* tooth top left */
- PUSH(0, 4, 5); /* tooth top right */
- PUSH(3, 4, 8); /* tooth right 3 */
- }
- else if (g->size == INVOLUTE_LARGE)
- {
- PUSH(3, 4, 0); /* tooth left 1 */
- PUSH(2, 4, 1); /* tooth left 2 */
- PUSH(1, 4, 2); /* tooth left 3 */
- PUSH(0, 4, 3); /* tooth top left */
- PUSH(0, 4, 5); /* tooth top right */
- PUSH(1, 4, 6); /* tooth right 1 */
- PUSH(2, 4, 7); /* tooth right 2 */
- PUSH(3, 4, 8); /* tooth right 3 */
- PUSH(3, 4, 9); /* gap top */
- }
- else
+ switch (g->size) {
+ case INVOLUTE_SMALL:
+ PUSH(6, 8, 0); /* tooth left 1 */
+ PUSH(0, 8, 8); /* tooth top middle */
+ break;
+ case INVOLUTE_MEDIUM:
+ PUSH(6, 8, 0); /* tooth left 1 */
+ PUSH(0, 8, 6); /* tooth top left */
+ PUSH(0, 8, 10); /* tooth top right */
+ PUSH(6, 8, 16); /* tooth right 6 */
+ break;
+ case INVOLUTE_LARGE:
+ PUSH(6, 8, 0); /* tooth left 1 */
+ PUSH(4, 8, 2); /* tooth left 3 */
+ PUSH(2, 8, 4); /* tooth left 5 */
+ PUSH(0, 8, 6); /* tooth top left */
+ PUSH(0, 8, 10); /* tooth top right */
+ PUSH(2, 8, 12); /* tooth right 1 */
+ PUSH(4, 8, 14); /* tooth right 3 */
+ PUSH(6, 8, 16); /* tooth right 5 */
+ PUSH(6, 8, 18); /* gap top */
+ break;
+ case INVOLUTE_HUGE:
+ PUSH(6, 8, 0); /* tooth left 1 */
+ PUSH(5, 8, 1); /* tooth left 2 */
+ PUSH(4, 8, 2); /* tooth left 3 */
+ PUSH(3, 8, 3); /* tooth left 4 */
+ PUSH(2, 8, 4); /* tooth left 5 */
+ PUSH(1, 8, 5); /* tooth left 6 */
+ PUSH(0, 8, 6); /* tooth top left */
+ PUSH(0, 8, 8); /* tooth top left */
+ PUSH(0, 8, 10); /* tooth top right */
+ PUSH(1, 8, 11); /* tooth top right */
+ PUSH(2, 8, 12); /* tooth right 1 */
+ PUSH(3, 8, 13); /* tooth right 2 */
+ PUSH(4, 8, 14); /* tooth right 3 */
+ PUSH(5, 8, 15); /* tooth right 4 */
+ PUSH(6, 8, 16); /* tooth right 5 */
+ PUSH(6, 8, 17); /* tooth right 6 */
+ PUSH(6, 8, 18); /* gap top */
+ PUSH(6, 8, 19); /* gap top */
+ break;
+ default: