Example of digital point export with Display3D.
- See also
- Export objects with Board3D
Illustration of the resulting exported file (OBJ format visualized with blender).
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/boards/Board3D.h"
#include "DGtal/helpers/StdDefs.h"
int main()
{
board << p1 << p2 << p3;
board << shape_set;
board.
saveOBJ(
"dgtalBoard3D-1-points.obj");
board2 << p1 ;
board2 << CustomColors3D(
Color(0, 255,0),
Color(0, 0,255));
board2 << p2 << p3;
board2 << CustomColors3D(
Color(250, 0,0),
Color(250, 0,0));
board2 << p6;
board2.
saveOBJ(
"dgtalBoard3D-1bis-points.obj");
return 0;
}