viewport3d-section

command
v1.16.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command viewport3d-section is a development example (step 30.10): a part (a box, a cylinder and a sphere) cut by a section plane, with its cap and the outline of the cut, in a viewport3d.View that the mouse and the touch orbit, pan and zoom. A tap picks what is under the pointer (ViewController.Pick), selects it (the highlight color and the outline) and shows what the pick found: the item, the triangle, the point of the world and the normal. A switch turns the cap on and off. It uses the part of internal/scenetest, so it is under examples/dev.

Run it with: go run ./examples/dev/viewport3d-section

It needs a GPU renderer (Vulkan, Direct3D 12 or WebGPU); with another one the view shows its fallback, a line of text.

Environment: GLUTTER_BACKEND=x11|wayland, GLUTTER_RENDERER=vulkan, GLUTTER_SCREENSHOT=<file.png>, GLUTTER_SCREENSHOT_AFTER=<duration>.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL