BoundingPlane
Visual debug helper that renders a finite preview of an infinite plane.
BoundingPlane draws a square region aligned with the given Plane. Since mathematical planes extend infinitely, this helper renders a finite, centered patch of configurable size, useful for visualizing clipping planes, ground planes, or intersection tests during debugging. The patch is drawn as a simple wireframe in the color provided.
cpp
auto plane = vglx::Plane {vglx::Vector3::Forward(), 0.0f};
my_scene->Add(vglx::BoundingPlane::Create(plane, 2.0f, 0xFF0000));INFO
Derives from Node and inherits all public properties and methods.
Construction
Constructors
BoundingPlane()
Constructs a bounding plane debug node.
cpp
BoundingPlane::BoundingPlane(const Plane& plane, float size, const Color& color);| Parameter | Description |
|---|---|
| plane | Infinite geometric plane to visualize. |
| size | Extent of the rendered square patch, measured from center to edge. |
| color | Line color used to draw the patch. |
Factories preferred
BoundingPlane::Create() std::unique_ptr<BoundingPlane>
Creates an instance of BoundingPlane.
cpp
static std::unique_ptr<BoundingPlane> BoundingPlane::Create(const Plane& plane, float size, const Color& color);| Parameter | Description |
|---|---|
| plane | Infinite geometric plane to visualize. |
| size | Extent of the rendered square patch. |
| color | Line color used to draw the patch. |