summaryrefslogtreecommitdiff
path: root/inc/BRepMesh_PluginMacro.hxx
blob: f98f036fa5349b98f282ad7b2659790f5ae06fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// File:	BRepMesh_PluginMacro.hxx
// Created:	Fri Apr 11 09:11:08 2008
// Author:	Peter KURNEV
//		<pkv@irinox>


#ifndef BRepMesh_PluginMacro_HeaderFile
#define BRepMesh_PluginMacro_HeaderFile

#define DISCRETPLUGIN(name) \
extern "C" {Standard_EXPORT Standard_Integer DISCRETALGO(const TopoDS_Shape& ,\
							 const Standard_Real,\
							 const Standard_Real,\
							 BRepMesh_PDiscretRoot& );} \
Standard_Integer DISCRETALGO(const TopoDS_Shape& theShape,\
			     const Standard_Real    theDeflection,\
			     const Standard_Real    theAngle,\
			     BRepMesh_PDiscretRoot&  theAlgo) { \
  return name::Discret(theShape,\
		       theDeflection,\
		       theAngle,\
		       theAlgo);} \
\


#endif