|
static void | wire_render (const Polymesh &) |
| Renders this polymesh as a wireframe using OpenGL. More...
|
|
static void | wire_occlude_render (const Polymesh &) |
| Renders this polymesh into the depth buffer using OpenGL. More...
|
|
static void | solid_occlude_render (const Polymesh &p) |
|
static void | solid_render (const Polymesh &) |
| Renders this polymesh as a solid using OpenGL. More...
|
|
static void | project (Polymesh &) |
| Projects this polymesh onto the image plane using the current OpenGL transformation. More...
|
|
static unsigned int | wire_render_with_sequential_ids (const Polymesh &, unsigned int start_id=1) |
| Render each edge of this polymesh with a different color. The first edge will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing. Returns the id (color) used to render the last edge of the polygon. More...
|
|
static unsigned int | wire_render_with_sequential_ids_16bits (const Polymesh &, unsigned int start_id=1) |
| Render each edge of this polymesh with a different color. The first edge will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing. Returns the id (color) used to render the last edge of the polygon. More...
|
|
static unsigned int | solid_render_with_sequential_ids (const Polymesh &, unsigned int start_id=1) |
| Render each polygon of this polymesh with a different color. The first polygon will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing. Returns the id (color) used to render the last polygon. More...
|
|
static void | solid_render_with_bases (const Polymesh &p, unsigned int base1=0, unsigned int base2=0) |
|
static void | solid_render_orientations_with_bases (const Polymesh &p, unsigned int base1) |
|
static void | silhouette_render (const kjb::Base_gl_interface &camera, const Polymesh &p, double iwidth=1.0) |
| Renders the silhouette (contour) of this polygonal mesh. This method works only for convex meshes, and gives reasonable results for concave ones. More...
|
|
static void | draw_orientation_map (const kjb::Parapiped &p) |
| Draws the orientation map given a parapiped. This function must be moved somewhere else. More...
|
|
static void | draw_left_right_orientation_map (const kjb::Parapiped &p) |
| Draws the left-right orientation map given a parapiped. This function assumes that the parapiped is lying on a plane parallel to the x-z plane This function must be moved somewhere else. More...
|
|
static void | draw_CMU_orientation_map (const kjb::Parapiped &p) |
|
static void | draw_geometric_context_map (const kjb::Parapiped &p) |
|
Renders the silhouette (contour) of this polygonal mesh. This method works only for convex meshes, and gives reasonable results for concave ones.
This method renders the silhouette (contour) of this polygonal mesh. This method works only for convex meshes, and gives reasonable results for concave ones. A simple algorithm is used: first, all polygons are rendered in the z buffer, then we render the contour of all polygon that are not visible.
- Parameters
-
mesh | The mesh to be rendered |
iwidth | The line width used to render the silhouette. |
unsigned int GL_Polymesh_Renderer::wire_render_with_sequential_ids |
( |
const Polymesh & |
p, |
|
|
unsigned int |
start_id = 1 |
|
) |
| |
|
static |
Render each edge of this polymesh with a different color. The first edge will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing. Returns the id (color) used to render the last edge of the polygon.
Render each edge of this polygon with a different color. The first edge will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing
- Parameters
-
p | The polymesh to render |
start_id | The color for the first edge of the polymesh |
- Returns
- The last id used
unsigned int GL_Polymesh_Renderer::wire_render_with_sequential_ids_16bits |
( |
const Polymesh & |
p, |
|
|
unsigned int |
start_id = 1 |
|
) |
| |
|
static |
Render each edge of this polymesh with a different color. The first edge will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing. Returns the id (color) used to render the last edge of the polygon.
Render each edge of this polygon with a different color. The first edge will be rendered using the input id as a color, the following edges will be rendered with an id sequentially increasing. This works if and only if the polymesh has 8 faces or less!!!!
- Parameters
-
p | The polymesh to render |
start_id | The color for the first edge of the polymesh |
- Returns
- The last id used