![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Mesh/Rendering/GlMeshRendererIntersection.h>
Renders the intersection between a Mesh and a Geometry::Plane using lines. More...
Renders the intersection between a Mesh and a Geometry::Plane using lines.
This low-level renderer renders lines at every position where a face of the input mesh intersects with the input plane. Optionally, it can will fill the inside of the mesh using a fill color.
This class does not implement the GlObject interface by design as it is meant to serve as a reusable component to be integrated into high-level classes.
Classes | |
struct | DisplayOptions |
Complete record of rendering options for GlMeshRendererIntersection. More... | |
Public Member Functions | |
void | render (const MeshGl &mesh, const DisplayOptions &options, const Geometry::Plane &plane, const GL::ViewState &viewState, const GL::OrderIndependentTransparency *oit=nullptr) const |
Renders the intersection between mesh and plane into the currently active OpenGL context. | |
void | renderWithCustomOptions (const MeshGl &mesh, const DisplayOptions &options, const vec4 &lineColor, const Geometry::Plane &plane, const GL::ViewState &viewState, const GL::OrderIndependentTransparency *oit=nullptr) const |
Renders the intersection between mesh and plane into the currently active OpenGL context. | |
void render | ( | const MeshGl & | mesh, |
const DisplayOptions & | options, | ||
const Geometry::Plane & | plane, | ||
const GL::ViewState & | viewState, | ||
const GL::OrderIndependentTransparency * | oit = nullptr ) const |
Renders the intersection between mesh and plane into the currently active OpenGL context.
mesh | The mesh to render. |
options | The rendering options to use. |
plane | The plane to intersect the mesh with. |
viewState | The GL::ViewState to use. |
oit | An optional pointer to a GL::OrderIndependentTransparency instance to use. |
void renderWithCustomOptions | ( | const MeshGl & | mesh, |
const DisplayOptions & | options, | ||
const vec4 & | lineColor, | ||
const Geometry::Plane & | plane, | ||
const GL::ViewState & | viewState, | ||
const GL::OrderIndependentTransparency * | oit = nullptr ) const |
Renders the intersection between mesh and plane into the currently active OpenGL context.
mesh | The mesh to render. |
options | The rendering options to use. |
lineColor | Custom line color to use instead of the one in options. |
plane | The plane to intersect the mesh with. |
viewState | The GL::ViewState to use. |
oit | An optional pointer to a GL::OrderIndependentTransparency instance to use. |