|
Easy3D 3.0.0
|
Inputs for selection of point centers inside a screen polygon. More...
#include <render_device.h>
Public Attributes | |
| std::shared_ptr< const PointData > | points |
| Immutable point positions and source-slot mapping. | |
| std::vector< vec2 > | polygon |
| Polygon in top-left framebuffer pixel coordinates. | |
| std::vector< std::uint32_t > | words |
| Selection bitset, one bit per source slot. | |
| mat4 | model_view_projection = mat4::identity() |
| Transform from point-local coordinates to OpenGL clip coordinates. | |
| std::uint32_t | width = 0 |
| Framebuffer width in pixels. | |
| std::uint32_t | height = 0 |
| Framebuffer height in pixels. | |
| bool | deselect = false |
| Clear bits inside the polygon instead of setting them. | |
| std::vector< vec4 > | local_clipping_planes |
| Up to two local-space halfspaces that points must satisfy. | |
Inputs for selection of point centers inside a screen polygon.
The polygon uses the even-odd crossing rule with its boundary included. Selection is independent of rasterization, occlusion, point style, MSAA, and scene readback. Nonfinite point positions are skipped. Vulkan evaluates the selection on the GPU; the OpenGL adapter currently projects and tests the CPU-backed point snapshot.