Skip to content

Commit 7d29963

Browse files
committed
1.0.1
1 parent bdf403c commit 7d29963

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contour.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function compileSurfaceProcedure(vertexFunc, faceFunc, phaseFunc, scalarArgs, or
9696
//Data, stride, offset pointers
9797
for(var i=0; i<arrayArgs; ++i) {
9898
vars.push(data(i) + "=" + array(i) + ".data",
99-
offset(i) + "=" + array(i) + ".offset")
99+
offset(i) + "=" + array(i) + ".offset|0")
100100
for(var j=0; j<dimension; ++j) {
101101
vars.push(stride(i,j) + "=" + array(i) + ".stride[" + j + "]|0")
102102
}
@@ -112,8 +112,8 @@ function compileSurfaceProcedure(vertexFunc, faceFunc, phaseFunc, scalarArgs, or
112112
ptrStr.push("-" + stride(i,k))
113113
}
114114
}
115-
vars.push(delta(i,j) + "=" + ptrStr.join(""))
116-
vars.push(cube(i,j))
115+
vars.push(delta(i,j) + "=(" + ptrStr.join("") + ")|0")
116+
vars.push(cube(i,j) + "=0")
117117
}
118118
}
119119
//Create step variables
@@ -166,7 +166,7 @@ function compileSurfaceProcedure(vertexFunc, faceFunc, phaseFunc, scalarArgs, or
166166
qcube(jperm) + "=(" + signFlag + cubeDelta.join("-") + ")|0",
167167
pcube(jperm) + "=0")
168168
}
169-
vars.push(vert(0) + "=0", TEMPORARY)
169+
vars.push(vert(0) + "=0", TEMPORARY + "=0")
170170

171171
function forLoopBegin(i, start) {
172172
code.push("for(", index(order[i]), "=", start, ";",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ndarray-extract-contour",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Generic contour extraction library for surface nets/dual contouring",
55
"main": "contour.js",
66
"directories": {

0 commit comments

Comments
 (0)