Skip to content

Commit 97c89d7

Browse files
authored
Merge pull request #3 from gl-vis/autoscale
Autoscale [fix #2]
2 parents f308a12 + 608a531 commit 97c89d7

File tree

6 files changed

+287
-161
lines changed

6 files changed

+287
-161
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ var bounds = [];
1717
var streamTube = createStreamTube({
1818
startingPositions: positionsArray,
1919
maxLength: 1000,
20-
widthScale: 10000,
2120
getVelocity: velocityFunction,
2221
colormap: 'portland'
2322
}, bounds)
@@ -48,7 +47,8 @@ Creates a stream tube plot of a vector field.
4847
+ `getVelocity(point)` *(Required)* A getter function to get the velocity at a given point.
4948
+ `getDivergence(point)` *(Optional)* A getter function to get the divergence at a given point. Used for the width of the streamtube. Defaults to the divergence of the getVelocity function.
5049
+ `maxLength` *(Optional)* The maximum number of segments to add to a streamtube. Default is 1000.
51-
+ `widthScale` *(Optional)* The divergence multiplier to get the width of the streamtube. Default is 10000.
50+
+ `tubeSize` *(Optional)* The scaling factor for the streamtubes. The default is 1, which avoids two max divergence tubes from touching at adjacent starting positions.
51+
+ `absoluteTubeSize` *(Optional)* Absolute scaling factor for the streamtubes. A value of 1 scales divergence of 1 to 1 coordinate system unit. Overrides tubeSize.
5252
+ `colormap` *(Optional)* The colormap to use.
5353

5454
**Returns** A streamtube plot object that can be passed to gl-mesh3d.

0 commit comments

Comments
 (0)