Skip to content

Commit 31cee16

Browse files
committed
remove virutal node mark
1 parent 605f3cb commit 31cee16

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/datasource/graphene/backend.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ function decodeMultiscaleManifestChunk(chunk: GrapheneMultiscaleManifestChunk, r
221221
chunk.fragments = response.fragments;
222222
chunk.manifest.clipLowerBound.fill(0);
223223
chunk.manifest.clipUpperBound.fill(10000000);
224-
chunk.manifest.octree[5 * (response.fragments.length - 1) + 4] &= 0x7fffffff;
225-
chunk.manifest.octree[5 * (response.fragments.length - 1) + 3] |= 0x80000000;
226224
}
227225

228226
async function decodeMultiscaleFragmentChunk(

src/mesh/multiscale.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,9 @@ export function getDesiredMultiscaleMeshChunks(
202202
const pixelSize = minW / scaleFactor;
203203

204204
if (priorLodScale === 0 || pixelSize * detailCutoff < priorLodScale) {
205-
let lodScale = lodScales[lod];
205+
const lodScale = lodScales[lod];
206206
if (lodScale !== 0) {
207-
const virtual = childBeginAndVirtual >>> 31;
208-
if (virtual) {
209-
lodScale = 0;
210-
}
211-
const empty = childEndAndEmpty >>> 31;
212-
callback(lod, row, lodScale / pixelSize, empty | virtual);
207+
callback(lod, row, lodScale / pixelSize, childEndAndEmpty >>> 31);
213208
}
214209

215210
if (lod > 0 && (lodScale === 0 || pixelSize * detailCutoff < lodScale)) {

0 commit comments

Comments
 (0)