Addresses #132: there are currently two unconnected areas of the app that care about subregions of the volume, and
they use unrelated types to express these subregions. Eventually we will connect these two systems, and it would be nice if they both spoke the same language when we do. This PR and its counterpart (#137) convert both to use three.js's native Box3 type.
This PR converts the subregion fields of LoadSpec (minx, maxx, miny, etc., each of type number) to a single subregion field of type Box3, and deals with the consequences of this:
Replace legacy subregion functions in IVolumeLoader.ts with native Box3 methods where available, or new functions in VolumeLoaderUtils.ts
Update OmeZarrLoader (the only loader that pays attention to subregion so far) to use Box3
Addresses #132: there are currently two unconnected areas of the app that care about subregions of the volume, and they use unrelated types to express these subregions. Eventually we will connect these two systems, and it would be nice if they both spoke the same language when we do. This PR and its counterpart (#137) convert both to use three.js's native
Box3
type.This PR converts the subregion fields of
LoadSpec
(minx
,maxx
,miny
, etc., each of typenumber
) to a singlesubregion
field of typeBox3
, and deals with the consequences of this:Box3
methods where available, or new functions in VolumeLoaderUtils.tsOmeZarrLoader
(the only loader that pays attention to subregion so far) to useBox3
RequestQueue