Mass.setBoxTotal seems to be missing from the wrappers, the patch is trivia=
l:
diff -ur PyODE-1.1.0.orig/src/declarations.pyx PyODE-1.1.0/src/declarations=
.pyx
--- PyODE-1.1.0.orig/src/declarations.pyx 2005-05-05
18:41:33.000000000 +0100
+++ PyODE-1.1.0/src/declarations.pyx 2006-05-27 19:38:23.000000000 +0100
@@ -302,6 +302,8 @@
dReal radius, dReal length)
void dMassSetBox (dMass *, dReal density,
dReal lx, dReal ly, dReal lz)
+ void dMassSetBoxTotal (dMass *, dReal total_mass,
+ dReal lx, dReal ly, dReal lz)
void dMassAdjust (dMass *, dReal newmass)
void dMassTranslate (dMass *, dReal x, dReal y, dReal z)
void dMassRotate (dMass *, dMatrix3 R)
diff -ur PyODE-1.1.0.orig/src/mass.pyx PyODE-1.1.0/src/mass.pyx
--- PyODE-1.1.0.orig/src/mass.pyx 2004-11-15 20:16:03.000000000 +0000
+++ PyODE-1.1.0/src/mass.pyx 2006-05-27 19:37:46.000000000 +0100
@@ -152,6 +152,25 @@
"""
dMassSetBox(&self._mass, density, lx, ly, lz)
+ def setBoxTotal(self, total_mass, lx, ly, lz):
+ """setBoxTotal(total_mass, lx, ly, lz)
+
+ Set the mass parameters to represent a box of the given
+ dimensions and density, with the center of mass at (0,0,0)
+ relative to the body. The side lengths of the box along the x,
+ y and z axes are lx, ly and lz.
+
+ @param total_mass: The total mass of the box
+ @param lx: The length along the x axis
+ @param ly: The length along the y axis
+ @param lz: The length along the z axis
+ @type total_mass: float
+ @type lx: float
+ @type ly: float
+ @type lz: float
+ """
+ dMassSetBoxTotal(&self._mass, total_mass, lx, ly, lz)
+
def adjust(self, newmass):
"""adjust(newmass)
|