PPL API Reference |
|
---|
A visualization of a polyhedron. More...
Public Member Functions | |
Constructor | |
DrawablePolyhedron (const GMSPolyhedron &_polyhedron, const glutils::color &_color, const bool _wire=false) | |
Rendering Options | |
void | ToggleRenderMode () |
Toggle between wire and full-frame rendering. | |
Protected Member Functions | |
drawable_display_list overrides | |
virtual void | build () override |
virtual void | build_select () override |
virtual void | build_selected () override |
Helpers | |
void | build_polyhedron () |
The build commands for the polyhedron model. | |
void | build_wireframe () |
The build commands for the wireframe model. | |
std::set< std::pair< size_t, size_t > > | BuildAdjacencyMap () |
Protected Attributes | |
Internal State | |
const GMSPolyhedron & | m_polyhedron |
The polyhedron to visualize. | |
glutils::color | m_color |
The rendering color. | |
bool | m_wire {false} |
Render a wireframe only? | |
A visualization of a polyhedron.
DrawablePolyhedron::DrawablePolyhedron | ( | const GMSPolyhedron & | _polyhedron, |
const glutils::color & | _color, | ||
const bool | _wire = false |
||
) |
Construct a polyhedron visualization.
_polyhedron | The polyhedron to visualize. |
_color | The color to render in. |
_wire | Render a wireframe instead of the full model? |
|
protected |
Builds a map showing the lines of adjacent polygons and whether they need to be drawn.