IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MeshWithHoles3dFunctions.h
Go to the documentation of this file.
1 // MeshWithHoles3dFunctions.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_MESHWITHHOLES3DFUNCTIONS_H__
16 #define __IPSDKGEOMETRY_MESHWITHHOLES3DFUNCTIONS_H__
17 
20 #include <IPSDKUtil/Tools/ProcessingResult.h>
21 #include <boost/filesystem/path.hpp>
22 #include <iostream>
23 
24 namespace ipsdk {
25 namespace geom {
26 
29 
36 template <typename T>
38 saveToStLAscii(const boost::filesystem::path& stlFile,
39  const MeshWithHoles3d<T>& mesh,
40  const ipBool bSaveHoles,
41  const std::string& solidName = "");
42 
49 template <typename T>
51 saveToStLBinary(const boost::filesystem::path& stlFile,
52  const MeshWithHoles3d<T>& mesh,
53  const ipBool bSaveHoles);
54 
56 template <typename T>
58 writeStLAscii(std::ostream& os,
59  const MeshWithHoles3d<T>& mesh,
60  const ipBool bSaveHoles,
61  const ipReal32 xOffset,
62  const ipReal32 yOffset,
63  const ipReal32 zOffset);
64 
66 template <typename T>
68 writeStLBinary(std::ostream& os,
69  const MeshWithHoles3d<T>& mesh,
70  const ipBool bSaveHoles,
71  const ipReal32 xOffset,
72  const ipReal32 yOffset,
73  const ipReal32 zOffset);
74 
77 
78 } // end of namespace geom
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKGEOMETRY_MESHWITHHOLES3DFUNCTIONS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKGEOMETRY_API void writeStLBinary(std::ostream &os, const Mesh3d< T > &mesh, const ipReal32 xOffset, const ipReal32 yOffset, const ipReal32 zOffset)
function allowing to write stl binary mesh data into a stream
IPSDKGEOMETRY_API void writeStLAscii(std::ostream &os, const Mesh3d< T > &mesh, const ipReal32 xOffset, const ipReal32 yOffset, const ipReal32 zOffset)
function allowing to write stl ascii mesh data into a stream
IPSDKGEOMETRY_API BoolResult saveToStLBinary(const boost::filesystem::path &stlFile, const Mesh3d< T > &mesh)
export the mesh definition to a StL binary file
IPSDKGEOMETRY_API BoolResult saveToStLAscii(const boost::filesystem::path &stlFile, const Mesh3d< T > &mesh, const std::string &solidName="")
export the mesh definition to a StL ascii file
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
Predefined types for mesh with holes 3d management.
bool ipBool
Base types definition.
Definition: BaseTypes.h:47
ProcessingResult< bool > BoolResult
typedef for boolean results associated to a string description
Definition: ProcessingResultTypes.h:29
float ipReal32
Base types definition.
Definition: BaseTypes.h:56