IBM TJ Watson Research

IBMWindmill

IBMWindmill.mp4

Description

Tests USE of a rotated Shape and rotationAngle interpolation.

A single blade of a windmill has been created with IndexedLineSet2D using a thick solid line style. The single Shape is DEF'd and USE'd, as three other instances, under three other Transform2Ds that have their rotationAngle set to PI/2, -PI/2 and PI respectively. All the blades are included under an overall Transform2D whose rotationAngle is interpolated from 0 to 2*PI using a ScalarInterpolator. The blades thus rotate in an anti-clockwise direction.

Screenshot

Snapshot taken during interpolation of rotationAngle.



Back to main index