~ubuntu-branches/ubuntu/maverick/elmerfem/maverick

« back to all changes in this revision

Viewing changes to misc/tetgen_plugin/plugin/ElmerAPI.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2010-01-02 19:36:01 UTC
  • mfrom: (1.1.3 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100102193601-7y4t4ptkzdsmq0ai
Tags: 5.5.0.svn.4262.dfsg-1ubuntu1
* Merge from debian testing, remaining changes:
  - fix ElmerGUI/ElmerGUI.pri to use python2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <QtGlobal>
 
2
#include "tetgen.h"
 
3
 
 
4
//
 
5
// C-delegator for overloaded 'tetrahedralize':
 
6
//
 
7
void delegate_tetrahedralize(int bs, tetgenbehavior *b, char *switches, 
 
8
                             tetgenio *in, tetgenio *out, tetgenio *addin,
 
9
                             tetgenio *bgmin)
 
10
{
 
11
  if(bs==0)
 
12
    tetrahedralize(b, in, out, addin, bgmin);
 
13
      
 
14
  if(bs==1)
 
15
    tetrahedralize(switches, in, out, addin, bgmin);
 
16
 
 
17
  return;
 
18
}
 
19
 
 
20
//
 
21
// Create object of class 'tetgenio'
 
22
//
 
23
extern "C" 
 
24
#ifdef Q_WS_WIN
 
25
__declspec(dllexport)
 
26
#endif
 
27
tetgenio* CreateObjectOfTetgenio()
 
28
{
 
29
  return new tetgenio();
 
30
}