summaryrefslogtreecommitdiff
path: root/cad/src/experimental/finite-element/comp.pyx
blob: d88aa20bc7f9878be51c692474745c80288622c7 (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
# Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
cdef extern from "comphelp.c":
    setup(int n)
    internalForces(double stiffness, double viscosityOverDt, double dtm)
    verletMomentum()
    applyForces(forces, double dtm)
    draw(drawCallback, int w, int h)
    rotate()

def _setup(n):
    setup(n)

def _internalForces(stiffness, viscOverDt, dtm):
    internalForces(stiffness, viscOverDt, dtm)

def _verletMomentum():
    verletMomentum()

def _applyForces(forces, dtm):
    applyForces(forces, dtm)

def _draw(cb, w, h):
    return draw(cb, w, h)

def _rotate():
    return rotate()