#SMF2.0 # cube_node.smf # In this example, RGB colors are attached to each node. # When displayed, this cube will have colors smoothly interpolated # across its faces. # # First, define the geometry of the cube. # v 0 0 0 v 1 0 0 v 0 1 0 v 1 1 0 v 0 0 1 v 1 0 1 v 0 1 1 v 1 1 1 f 1 4 2 f 1 3 4 f 5 6 8 f 5 8 7 f 1 2 6 f 1 6 5 f 2 4 8 f 2 8 6 f 4 3 7 f 4 7 8 f 3 1 5 f 3 5 7 # # Now declare that colors will be bound 1 per node, # and list the colors. # bind c vertex c 0 0 0 c 1 0 0 c 0 1 0 c 1 1 0 c 0 0 1 c 1 0 1 c 0 1 1 c 1 1 1