PPL API Reference
Overview Core Algorithm Abstractions Utilities Parallel Methods
Modules Class Hierarchy Classes Functions
Todo List Bug List Dead Code
List of all members
DrawablePolyhedron Class 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 GMSPolyhedronm_polyhedron
 The polyhedron to visualize.
 
glutils::color m_color
 The rendering color.
 
bool m_wire {false}
 Render a wireframe only?
 

Detailed Description

A visualization of a polyhedron.

Constructor & Destructor Documentation

◆ DrawablePolyhedron()

DrawablePolyhedron::DrawablePolyhedron ( const GMSPolyhedron _polyhedron,
const glutils::color &  _color,
const bool  _wire = false 
)

Construct a polyhedron visualization.

Parameters
_polyhedronThe polyhedron to visualize.
_colorThe color to render in.
_wireRender a wireframe instead of the full model?

Member Function Documentation

◆ BuildAdjacencyMap()

std::set< std::pair< size_t, size_t > > DrawablePolyhedron::BuildAdjacencyMap ( )
protected

Builds a map showing the lines of adjacent polygons and whether they need to be drawn.

Returns
The adjacency map of the current polyhedron.

The documentation for this class was generated from the following files: