| 38 | | >>> cube = soy.shapes.Box(1,1,1) # Step 1: Shape |
| 39 | | >>> mat = soy.materials.Material()# Step 2: Material |
| 40 | | >>> mat.shininess = 5 # Looks nicer :D |
| 41 | | >>> body = soy.bodies.Body(scene=sce,mesh=soy.meshes.Shape(mat),shape=cube) # Step 3: Body |
| | 39 | >>> cube = soy.shapes.Box(1, 1, 1) # Step 1: Shape |
| | 40 | >>> mat = soy.materials.Material() # Step 2: Material |
| | 41 | >>> mat.shininess = 5 # (Optional) Looks nicer (modifies the applied specular lighting; play with this setting to see how it affects appearance) |
| | 42 | >>> body = soy.bodies.Body(scene=sce, model=soy.models.Shape(material=mat), shape=cube) # Step 3: Body |