diff options
author | bubnikv <bubnikv@gmail.com> | 2019-06-10 22:14:58 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-06-10 22:14:58 +0300 |
commit | af5017c46c42305553e42f95c4f62c2cbe27d607 (patch) | |
tree | edd141122eef66aba73cabb2bd38f27480c23a7d /xs | |
parent | 313ec7424a9714ba6de64a94b7d4b89ebae05f91 (diff) |
admesh refactoring: Use Eigen vec3i for indexed triangles.
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/TriangleMesh.xsp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xs/xsp/TriangleMesh.xsp b/xs/xsp/TriangleMesh.xsp index 3e90bfefd..f3153665c 100644 --- a/xs/xsp/TriangleMesh.xsp +++ b/xs/xsp/TriangleMesh.xsp @@ -129,9 +129,9 @@ TriangleMesh::facets() AV* facet = newAV(); av_store(facets, i, newRV_noinc((SV*)facet)); av_extend(facet, 2); - av_store(facet, 0, newSVnv(THIS->its.indices[i].vertex[0])); - av_store(facet, 1, newSVnv(THIS->its.indices[i].vertex[1])); - av_store(facet, 2, newSVnv(THIS->its.indices[i].vertex[2])); + av_store(facet, 0, newSVnv(THIS->its.indices[i][0])); + av_store(facet, 1, newSVnv(THIS->its.indices[i][1])); + av_store(facet, 2, newSVnv(THIS->its.indices[i][2])); } RETVAL = newRV_noinc((SV*)facets); |