Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::DebugStream Class Reference

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))
 

Detailed Description

Easy to use functions to save geometry to a Alias Wavefront .obj file for debugging.

Definition at line 54 of file debug_stream.h.

Constructor & Destructor Documentation

◆ DebugStream()

GEO::DebugStream::DebugStream ( const std::string &  name,
index_t  id = index_t(-1) 
)

DebugStream constructor.

Parameters
[in]namebase name of the file where geometry will be saved
[in]idoptional index, if specified, appended to the name, padded with zeros (5 digits)

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