Skip to content
Snippets Groups Projects
Commit ae781170 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix volume isosurface picking

parent 7e26dac5
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ export function eachVolumeLoci(loci: Loci, volume: Volume, isoValue: Volume.IsoV
} else if (Volume.Isosurface.isLoci(loci)) {
if (!Volume.areEquivalent(loci.volume, volume)) return false;
if (isoValue) {
if (Volume.IsoValue.areSame(loci.isoValue, isoValue, volume.grid.stats)) return false;
if (!Volume.IsoValue.areSame(loci.isoValue, isoValue, volume.grid.stats)) return false;
if (apply(Interval.ofLength(volume.grid.cells.data.length))) changed = true;
} else {
// TODO find a cheaper way?
......
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