Skip to content

Commit 80bcd84

Browse files
committed
use gl-streamtube3d 'tubeScale' to fit tubes inside scene
+ update baselines
1 parent b9a6e3f commit 80bcd84

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

src/traces/streamtube/convert.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,8 @@ function convert(scene, trace) {
150150
meshData.fresnel = trace.lighting.fresnel;
151151
meshData.opacity = trace.opacity;
152152

153-
// TODO
154153
// stash autorange pad value
155-
// - include pad!
156-
// - include tubeScale
157-
// trace._pad = meshData.tubeScale * trace.sizeref;
158-
// if(trace.sizemode === 'scaled') trace._pad *= trace._normMax;
154+
trace._pad = meshData.tubeScale * trace.sizeref * 2;
159155

160156
return meshData;
161157
}
-10 Bytes
Loading
-1.02 KB
Loading
-55 Bytes
Loading
-103 Bytes
Loading

0 commit comments

Comments
 (0)