summaryrefslogtreecommitdiff
path: root/cad/src/experimental/oleksandr/cppsurface.h
blob: 9b6fc97194763dab5eafc4933325b95a29db1f4d (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
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
/*
  Name: cppsurface.h
  Author: Oleksandr Shevchenko
  Description: CPP functions to call from C 
*/

#if !defined(CPPSURFACE_INCLUDED)
#define CPPSURFACE_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif

void cppAdd(double x, double y, double z, double r, int p);
void cppCreateSurface();
void cppCollisionDetection(double delta);    
void cppAllocate();
void cppFree();
int cppNp();
int cppNt();
double cppPx(int i);
double cppPy(int i);
double cppPz(int i);
double cppNx(int i);
double cppNy(int i);
double cppNz(int i);
int cppC(int i); 
int cppI(int i);
void cppLevel(int i);
int cppType();
void cppMethod(int i);

#ifdef __cplusplus
}
#endif

#endif  								// CPPSURFACE_INCLUDED