dwigfor
06-01-2006, 02:03 AM
Hi all,
I'm trying to modify a script that I posted on here (http://forums.cgsociety.org/showthread.php?t=308948 - Jscript: HalfKill (Deletes -X) and I'm not sure what something means..
I forget where I got that script from - I didn't write it. I want to change it so it deletes +X instead of -X.
// Array off point where pointPositionX < almost 0 [-1E-5]
var delPoints = new Array();
var pointIndex;
var pointPositionX;
for (i=0, pointIndex = 0; i < pArray.length; i += 3, pointIndex++) {
pointPositionX = pArray[i];
if (pointPositionX < -1E-5) {
delPoints.push(pointIndex);
}
}
I changed it to: if (pointPositionX > 0) { and it works for what I want it to do.
My question is, what does almost 0 [-1E-5] mean??
I'm trying to modify a script that I posted on here (http://forums.cgsociety.org/showthread.php?t=308948 - Jscript: HalfKill (Deletes -X) and I'm not sure what something means..
I forget where I got that script from - I didn't write it. I want to change it so it deletes +X instead of -X.
// Array off point where pointPositionX < almost 0 [-1E-5]
var delPoints = new Array();
var pointIndex;
var pointPositionX;
for (i=0, pointIndex = 0; i < pArray.length; i += 3, pointIndex++) {
pointPositionX = pArray[i];
if (pointPositionX < -1E-5) {
delPoints.push(pointIndex);
}
}
I changed it to: if (pointPositionX > 0) { and it works for what I want it to do.
My question is, what does almost 0 [-1E-5] mean??
