File: README

package info (click to toggle)
inventor 2.1.5-10-12
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 32,900 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 75; csh: 35; sed: 11
file content (33 lines) | stat: -rw-r--r-- 1,339 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

This sample builds and views a working 3d clock.
The geometry description for the clock is specified
in a file, and is passed into ivclock as a command
line argument. The ivclock program uses the examiner
viewer so you can zoom in or otherwise move the camera
around the clock geometry.

There is one geometry file in this directory which
builds a very simple clock - just the hands and numbers.
Feel free to customize this data, or create your own
from scratch!

Customizing your own clock
--------------------------
The ivclock program searches the input file for named separators 
which specify the hour, minute, and second hand geometry.
For example, DEF MinuteHand Separator { ... }. Make sure to name
the separators that define the clock hand geometry in the 
file (HourHand, MinuteHand, and SecondHand). If you leave out 
the second hand name, then ivclock will run with just the hour 
and minute hands. (This means it only updates once every minute, 
rather than once every second).

If you don't specify a custom file on the command line, ivclock
will use the default clock geometry file clockData.iv.

The ivclock program will rotate the hour, minute, and
second hands about the z axis to display the current time.
If you want more moving parts than this in your custom clock,
you'll have to edit the ivclock.c++ source file.