Skip to content

Commit 5d22df8

Browse files
committed
remove virutal node mark
1 parent 1d6c57e commit 5d22df8

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
@@ -226,8 +226,6 @@ function decodeMultiscaleManifestChunk(chunk: GrapheneMultiscaleManifestChunk, r
226226
chunk.fragments = response.fragments;
227227
chunk.manifest.clipLowerBound.fill(0);
228228
chunk.manifest.clipUpperBound.fill(10000000);
229-
chunk.manifest.octree[5 * (response.fragments.length - 1) + 4] &= 0x7fffffff;
230-
chunk.manifest.octree[5 * (response.fragments.length - 1) + 3] |= 0x80000000;
231229
}
232230

233231
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)