|
17 | 17 | "source": [ |
18 | 18 | "## Clipping a 3D Mesh\n", |
19 | 19 | "\n", |
20 | | - "`Clipping` controls the plane position and orientation. `add_options_to_gui` adds interactive sliders for normal direction and position." |
| 20 | + "`Clipping` controls the plane position and orientation. The GUI automatically provides interactive sliders for normal direction and position." |
21 | 21 | ] |
22 | 22 | }, |
23 | 23 | { |
|
40 | 40 | "\n", |
41 | 41 | "volume_elements = MeshElements3d(meshdata, clipping=clipping)\n", |
42 | 42 | "volume_elements.shrink = 0.8\n", |
43 | | - "scene = Draw(volume_elements)\n", |
44 | | - "volume_elements.add_options_to_gui(scene.gui)\n", |
45 | | - "clipping.add_options_to_gui(scene.gui)" |
| 43 | + "scene = Draw(volume_elements)" |
46 | 44 | ] |
47 | 45 | }, |
48 | 46 | { |
|
52 | 50 | "source": [ |
53 | 51 | "## Clipping a Function (ClippingCF)\n", |
54 | 52 | "\n", |
55 | | - "`ClippingCF` computes and renders function values on the clipping plane cross-section via a compute shader. `add_options_to_gui` adds enabling/disabling the function on the clipping plane to the clipping menu." |
| 53 | + "`ClippingCF` computes and renders function values on the clipping plane cross-section via a compute shader." |
56 | 54 | ] |
57 | 55 | }, |
58 | 56 | { |
|
81 | 79 | "clip_cf = ClippingCF(function_data, clipping=clipping)\n", |
82 | 80 | "cfr = CFRenderer(function_data, clipping=clipping, colormap=clip_cf.colormap)\n", |
83 | 81 | "\n", |
84 | | - "scene = Draw([cfr, clip_cf, Colorbar(clip_cf.colormap)])\n", |
85 | | - "clipping.add_options_to_gui(scene.gui)\n", |
86 | | - "clip_cf.add_options_to_gui(scene.gui)" |
| 82 | + "scene = Draw([cfr, clip_cf, Colorbar(clip_cf.colormap)])" |
87 | 83 | ] |
88 | 84 | }, |
89 | 85 | { |
|
97 | 93 | "|---|---|\n", |
98 | 94 | "| `clipping.center` | Point on the plane (list of 3 floats) |\n", |
99 | 95 | "| `clipping.normal` | Plane normal direction (list of 3 floats) |\n", |
100 | | - "| `clipping.mode` | `Clipping.Mode.DISABLED` or `Clipping.Mode.PLANE` |\n", |
101 | | - "| `add_options_to_gui(gui)` | Adds interactive controls |" |
| 96 | + "| `clipping.mode` | `Clipping.Mode.DISABLED` or `Clipping.Mode.PLANE` |" |
102 | 97 | ] |
103 | 98 | } |
104 | 99 | ], |
|
118 | 113 | "name": "python", |
119 | 114 | "nbconvert_exporter": "python", |
120 | 115 | "pygments_lexer": "ipython3", |
121 | | - "version": "3.14.3" |
| 116 | + "version": "3.14.5" |
122 | 117 | } |
123 | 118 | }, |
124 | 119 | "nbformat": 4, |
|
0 commit comments