Skip to content
Snippets Groups Projects
Commit d446a2d0 authored by JonStargaryen's avatar JonStargaryen
Browse files

fix serialmapping

parent b476f738
Branches
No related tags found
No related merge requests found
......@@ -80,14 +80,14 @@ function initialize(structure: Structure, props: ANVILProps): ANVILContext {
centroidHelper.includeStep(vec);
// keep track of offsets and exposed state to reuse
offsets[m] = l.element;
offsets[m] = structure.serialMapping.getSerialIndex(l.unit, l.element);
exposed[m] = AccessibleSurfaceArea.getValue(l, asa) > props.asaCutoff;
m++;
}
}
// omit potentially empty tail
// omit potentially empty tail1
offsets = offsets.slice(0, m);
exposed = exposed.slice(0, m);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment