0000856: Wrong inverse of a matrix

This commit is contained in:
wmayer
2012-10-22 16:21:27 +02:00
parent ec3c79ad9c
commit 642a3e5094
3 changed files with 10 additions and 3 deletions

View File

@@ -342,7 +342,7 @@ PyObject* MatrixPy::invert(PyObject * args)
PY_TRY {
if (getMatrixPtr()->determinant() > DBL_EPSILON)
getMatrixPtr()->inverse();
getMatrixPtr()->inverseGauss();
else {
PyErr_SetString(PyExc_Exception, "Cannot invert singular matrix");
return 0;
@@ -361,7 +361,7 @@ PyObject* MatrixPy::inverse(PyObject * args)
PY_TRY {
if (getMatrixPtr()->determinant() > DBL_EPSILON) {
Base::Matrix4D m = *getMatrixPtr();
m.inverse();
m.inverseGauss();
return new MatrixPy(m);
}
else {