31 #if defined(Board3D_RECURSES) 32 #error Recursive header files inclusion detected in Board3D.h 33 #else // defined(Board3D_RECURSES) 35 #define Board3D_RECURSES 37 #if !defined Board3D_h 48 #include "DGtal/base/Common.h" 49 #include "DGtal/base/CountedPtr.h" 50 #include "DGtal/io/Display3D.h" 51 #include "DGtal/io/DrawWithDisplay3DModifier.h" 52 #include "DGtal/io/Color.h" 80 template <
typename Space = Z3i::Space,
typename KSpace = Z3i::KSpace>
120 void saveOBJ(
const std::string & filename,
121 const bool isNormalized =
false);
145 template <
typename TDrawableWithDisplay3D>
200 template <
typename Space,
typename KSpace>
202 operator<< ( std::ostream & out, const Board3D<Space, KSpace> & object );
209 #include "DGtal/io/boards/Board3D.ih" 215 #endif // !defined Board3D_h 217 #undef Board3D_RECURSES 218 #endif // else defined(Board3D_RECURSES)
std::map< DGtal::Color, unsigned int > myMaterialMap
Material Map.
std::stringstream myMTLBuffer
Material buffer.
void saveOBJ(const std::string &filename, const bool isNormalized=false)
Aim: SpaceND is a utility class that defines the fundamental structure of a Digital Space in ND...
void selfDisplay(std::ostream &out) const
Board3D(const KSpace &KSEmb)
unsigned int myMaterialIndex
Last Material index.
The class Board3D is a type of Display3D which export the figures in the format OBJ/MTL when calling ...
DGtal is the top-level namespace which contains all DGtal functions and types.
std::string className() const
DGtal::Color myDefaultColor
default color
Structure representing an RGB triple with alpha component.
Board3D & operator<<(const DGtal::Color &aColor)
Aim: This class is a model of CCellularGridSpaceND. It represents the cubical grid as a cell complex...
Aim: This semi abstract class defines the stream mechanism to display 3d primitive (like BallVector...
unsigned int getMaterialIndex(const DGtal::Color &aColor)