Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-06-10 22:14:58 +0300
committerbubnikv <bubnikv@gmail.com>2019-06-10 22:14:58 +0300
commitaf5017c46c42305553e42f95c4f62c2cbe27d607 (patch)
treeedd141122eef66aba73cabb2bd38f27480c23a7d /xs
parent313ec7424a9714ba6de64a94b7d4b89ebae05f91 (diff)
admesh refactoring: Use Eigen vec3i for indexed triangles.
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/TriangleMesh.xsp6
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);