31#if defined(SurfaceMeshWriter_RECURSES)
32#error Recursive header files inclusion detected in SurfaceMeshWriter.h
35#define SurfaceMeshWriter_RECURSES
37#if !defined SurfaceMeshWriter_h
39#define SurfaceMeshWriter_h
46#include "DGtal/base/Common.h"
47#include "DGtal/helpers/StdDefs.h"
48#include "DGtal/shapes/SurfaceMesh.h"
49#include "DGtal/io/Color.h"
63 template <
typename TRealPo
int,
typename TRealVector >
105 const Color& ambient_color =
Color( 32, 32, 32 ),
106 const Color& diffuse_color =
Color( 200, 200, 255 ),
126 template <
typename EdgePredicate>
130 const EdgePredicate & edge_predicate,
131 const double relative_thickness = 0.05,
160 const double relative_thickness = 0.05,
193 const double relative_thickness = 0.05,
206#include "SurfaceMeshWriter.ih"
212#undef SurfaceMeshWriter_RECURSES
Structure representing an RGB triple with alpha component.
static const Dimension dimension
Copy of the static dimension of the Point/Vector.
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::uint32_t Dimension
Aim: An helper class for writing mesh file formats (Waverfront OBJ at this point) and creating a Surf...
SurfaceMesh::Scalar Scalar
static bool writeOBJ(std::string objfile, const SurfaceMesh &smesh, const Colors &diffuse_colors=Colors(), const Color &ambient_color=Color(32, 32, 32), const Color &diffuse_color=Color(200, 200, 255), const Color &specular_color=Color::White)
static bool writeOBJ(std::ostream &output, const SurfaceMesh &smesh)
SurfaceMeshWriter< RealPoint, RealVector > Self
static bool writeIsoLinesOBJ(std::string objfile, const SurfaceMesh &smesh, const Scalars &face_values, const Scalars &vertex_values, const Scalar iso_value, const double relative_thickness=0.05, const Color &ambient_color=Color::Black, const Color &diffuse_color=Color::Black, const Color &specular_color=Color::Black)
static bool writeEdgeLinesOBJ(std::string objfile, const SurfaceMesh &smesh, const EdgePredicate &edge_predicate, const double relative_thickness=0.05, const Color &ambient_color=Color::Black, const Color &diffuse_color=Color::Black, const Color &specular_color=Color::Black)
SurfaceMesh::Vertex Vertex
DGtal::SurfaceMesh< RealPoint, RealVector > SurfaceMesh
SurfaceMesh::Vertices Vertices
std::vector< Color > Colors
static const Dimension dimension
SurfaceMesh::Scalars Scalars
BOOST_STATIC_ASSERT((dimension==3))
static bool writeIsoLinesOBJ(std::string objfile, const SurfaceMesh &smesh, const Scalars &face_values, const Scalars &vertex_values, const Scalars &iso_values, const double relative_thickness=0.05, const Colors &diffuse_colors=Colors(), const Color &ambient_color=Color::Black, const Color &diffuse_color=Color::Black, const Color &specular_color=Color::Black)
Aim: Represents an embedded mesh as faces and a list of vertices. Vertices may be shared among faces ...
std::vector< Vertex > Vertices
The type that defines a list/range of vertices (e.g. to define faces)
std::vector< Scalar > Scalars
std::size_t Index
The type used for numbering vertices and faces.
std::size_t Size
The type for counting elements.
RealVector::Component Scalar
std::vector< Face > Faces