Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Easy to use functions to save geometry to a Alias Wavefront .obj file for debugging. More...
#include <geogram/basic/debug_stream.h>
Public Member Functions | |
DebugStream (const std::string &name, index_t id=index_t(-1)) | |
DebugStream constructor. More... | |
~DebugStream () | |
DebugStream destructor. | |
void | add_point (const vec3 &p) |
void | add_point (const vec2 &p) |
void | add_segment (const vec3 &p1, const vec3 &p2) |
void | add_segment (const vec2 &p1, const vec2 &p2) |
void | add_triangle (const vec3 &p1, const vec3 &p2, const vec3 &p3) |
void | add_triangle (const vec2 &p1, const vec2 &p2, const vec2 &p3) |
Static Protected Member Functions | |
static std::string | filename (const std::string &name, index_t id=index_t(-1)) |
Easy to use functions to save geometry to a Alias Wavefront .obj file for debugging.
Definition at line 54 of file debug_stream.h.
DebugStream constructor.
[in] | name | base name of the file where geometry will be saved |
[in] | id | optional index, if specified, appended to the name, padded with zeros (5 digits) |