aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_qhull.c
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2012-08-25 22:51:30 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2012-08-25 22:51:30 +0000
commit04be907cbba161af7eda231f8a6a1856fc3a6042 (patch)
treec66978c79165fb745297856da9f50b51db6d56b9 /src/mtx_qhull.c
parent547a9740506d30ddd2f0dc3fe70b436423bc7a43 (diff)
improved deterministic behavior of [mtx_qhull], however planar polygons
do not fully work yet. svn path=/trunk/externals/iem/iemmatrix/; revision=16172
Diffstat (limited to 'src/mtx_qhull.c')
-rw-r--r--src/mtx_qhull.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mtx_qhull.c b/src/mtx_qhull.c
index 7223b4b..34a4891 100644
--- a/src/mtx_qhull.c
+++ b/src/mtx_qhull.c
@@ -15,8 +15,6 @@
#include "iemmatrix.h"
#include <stdlib.h>
-#include "mtx_qhull/list.h"
-#include "mtx_qhull/vectors.h"
#include "mtx_qhull/zhull.h"
static t_class *mtx_qhull_class;
@@ -109,14 +107,9 @@ static void mTXQhullMatrix(MTXQhull *xo, t_symbol *s,
SETFLOAT(xo->list,(float)xo->hull_size);
SETFLOAT(xo->list+1,(float)3);
for (i=0; i<xo->hull_size; i++) {
- t_atom*ap=xo->list+2+3*i;
- float f=(float)getEntry(getFacetByIndex(xo->zh->facets,i)->corners,0)+1;
- SETFLOAT(xo->list+2+3*i, (float)getEntry(
- getFacetByIndex(xo->zh->facets,i)->corners,0)+1);
- SETFLOAT(xo->list+3+3*i, (float)getEntry(
- getFacetByIndex(xo->zh->facets,i)->corners,1)+1);
- SETFLOAT(xo->list+4+3*i, (float)getEntry(
- getFacetByIndex(xo->zh->facets,i)->corners,2)+1);
+ SETFLOAT(xo->list+2+3*i, (float)getTriangleCorner(xo->zh,i,0)+1);
+ SETFLOAT(xo->list+3+3*i, (float)getTriangleCorner(xo->zh,i,1)+1);
+ SETFLOAT(xo->list+4+3*i, (float)getTriangleCorner(xo->zh,i,2)+1);
}
outlet_anything(xo->outl, gensym("matrix"),
xo->size, xo->list);