summaryrefslogtreecommitdiff
path: root/cad/src/experimental/oleksandr/csurface.h
blob: 352ae3bc6aa3781a5f826322cfa11b18e59f63df (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
/*
  Name: csurface.h
  Author: Oleksandr Shevchenko
  Description: C helper for psurface.pyx 
*/

#if !defined(CSURFACE_INCLUDED)
#define CSURFACE_INCLUDED

#include "cppsurface.h"

void cAdd(double x, double y, double z, double r, int p)
{
	cppAdd(x,y,z,r,p);
}
void cCreateSurface()
{
	cppCreateSurface();
}
void cCollisionDetection(double delta)  
{
	cppCollisionDetection(delta);  
}
void cAllocate()
{
	cppAllocate();
}
void cFree()
{
	cppFree();
}
int cNp()
{
	return cppNp();
}
int cNt()
{
	return cppNt();
}
double cPx(int i)
{
	return cppPx(i);
}
double cPy(int i)
{
	return cppPy(i);
}
double cPz(int i)
{
	return cppPz(i);
}
double cNx(int i)
{
	return cppNx(i);
}
double cNy(int i)
{
	return cppNy(i);
}
double cNz(int i)
{
	return cppNz(i);
}
int cC(int i) 
{
	return cppC(i);
}
int cI(int i)
{
	return cppI(i);
}
void cLevel(int i)
{
	cppLevel(i);
}
int cType()
{
	return cppType();
}
void cMethod(int i)
{
	cppMethod(i);
}

#endif  								// CSURFACE_INCLUDED