|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
A clipping plane that can hide parts of the scene. More...
#include <types.h>
Public Attributes | |
| Vec3 | normal = Vec3(0.0f, 0.0f, -1.0f) |
| The plane normal vector (should be unit-length). | |
| float | offset = 0.0f |
| Offset along the normal. | |
A clipping plane that can hide parts of the scene.
A clip plane is defined by a normal vector and an offset. Anything on the "negative" side of the plane (where dot(point, normal) + offset < 0) is discarded during rendering.
Clip planes are useful for cross-section views (e.g., slicing through a brain mesh to show internal structures).
| float scimesh::ClipPlane::offset = 0.0f |