Skip to content
Snippets Groups Projects
Commit 81732b1e authored by Sebastian Bittrich's avatar Sebastian Bittrich
Browse files

testPoint is now defined outside of loop

parent 4d94a668
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ namespace AccessibleSurfaceArea {
const position = (i: number, v: Vec3) => Vec3.set(v, x[i], y[i], z[i]);
const aPos = Vec3.zero();
const bPos = Vec3.zero();
let testPoint = Vec3.zero();
for (let aI = 0; aI < atomCount; ++aI) {
if (aI % 10000 === 0) {
......@@ -130,7 +131,7 @@ namespace AccessibleSurfaceArea {
let accessiblePointCount = 0;
for (let sI = 0; sI < spherePoints.length; ++sI) {
const spherePoint = spherePoints[sI];
const testPoint = [spherePoint[0] * scalar + aPos[0], spherePoint[1] * scalar + aPos[1], spherePoint[2] * scalar + aPos[2]] as Vec3;
testPoint = [spherePoint[0] * scalar + aPos[0], spherePoint[1] * scalar + aPos[1], spherePoint[2] * scalar + aPos[2]] as Vec3;
let accessible = true;
for (let _nI = 0; _nI < neighbors.length; ++_nI) {
......
......@@ -69,8 +69,8 @@ function getCartoonRepr() {
let accessibleSurfaceArea: AccessibleSurfaceArea;
async function init(props = {}) {
const cif = await downloadFromPdb(
// '3j3q'
'1aon'
'3j3q'
// '1aon'
// '1acj'
)
const models = await getModels(cif)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment