]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Instances_itkMesh.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Instances_itkMesh.cxx
index 14952ccebd53ebf3eb8a3514051748ab17f1a873..a7d3df458d6dcf8e62ee046f123e689303b6db5c 100644 (file)
@@ -1,10 +1,22 @@
-/* TODO
-   #include <itkMesh.h>
-
-   template class itk::Mesh< float, 2 >;
-   template class itk::Mesh< double, 2 >;
-   template class itk::Mesh< float, 3 >;
-   template class itk::Mesh< double, 3 >;
-*/
+#include <cpPlugins/Interface/Macros.h>
+
+#include <itkMesh.h>
+#include <itkQuadEdgeMesh.h>
+
+// -------------------------------------------------------------------------
+#define cpPlugins_Mesh_Export( N, T, D )                                \
+  cpPlugins_TEMPLATE_EXPORT(                                            \
+    2(class cpPlugins_Interface_EXPORT itk::N< T, D >)                  \
+    )
+
+// -------------------------------------------------------------------------
+cpPlugins_Mesh_Export( Mesh, float, 2 );
+cpPlugins_Mesh_Export( Mesh, double, 2 );
+cpPlugins_Mesh_Export( Mesh, float, 3 );
+cpPlugins_Mesh_Export( Mesh, double, 3 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, float, 2 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, double, 2 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, float, 3 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, double, 3 );
 
 // eof - $RCSfile$