You've just seen how to create an individual object, so now let's put several objects together into one scene.1 First, delete the surface you have been working with using the
Object/Deletemenu. Next, create aGroupobject by selectingObject/Newand selecting theGrouptype in the selection list. After hittingOK, you should see the group object appear in the object list, but the definition window will remain blank. That's because a group doesn't have any values that you need to set; you can still enter things like sliders and other definitions that are to be shared by the members of the group.To add an object into the group, select
Addfrom theObjectmenu. For this demonstration, add aSurfaceto your group and make its functio beFunction {x y} {let z = x^2 - y^2}ChooseAddagain and create anAxesobject. Now pressUpdateto see the compound object consisting of the surface and axes together.Now we will add a third object, this time another
Surface, and name itPlane; we are going to make this be a slicing plane that will cut the other surface. We'll make the slice be at a height h given by a slider. To do this, enter the following script forPlane:Domain {{-1 1 1} {-1 1 1}}; # this makes a single square Function {x y} {let z = h}; # every point is at height `h' Slider h -1 1 0; # the height for the planeNow when you pressUpdate, a horizontal plane should appear. SelectSolid/Bluein theColormenu to make it blue. When you move the slider, the plane will move and cut the surface at different locations.
| 1 |
In |
|
|