Skip to content

Commit ed15f2c

Browse files
committed
color transfer (points)
1 parent 113313c commit ed15f2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/streamtubes/convert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ proto.update = function(data) {
285285
}
286286

287287
if(true) {
288-
var delaunayOptions = calculateMesh(this.data.x, this.data.y, this.data.z, options.lineColor, this.scene.dataScale);
288+
var delaunayOptions = calculateMesh(this.data.x, this.data.y, this.data.z, options.lineColor, options.scatterColor, this.scene.dataScale);
289289
if(this.delaunayMesh) {
290290
this.delaunayMesh.update(delaunayOptions);
291291
} else {
@@ -324,7 +324,7 @@ function createLineWithMarkers(scene, data) {
324324

325325
module.exports = createLineWithMarkers;
326326

327-
function calculateMesh(inputX, inputY, inputZ, inputC, scalingFactor) {
327+
function calculateMesh(inputX, inputY, inputZ, inputC, inputMC, scalingFactor) {
328328

329329
function addVertex(X, Y, Z, x, y, z) {
330330
X.push(x);
@@ -900,7 +900,7 @@ function calculateMesh(inputX, inputY, inputZ, inputC, scalingFactor) {
900900
}
901901

902902
for(n = 0; n < p.x.length; n++) {
903-
index = addPointMarker(unitSphere, p.x[n], p.y[n], p.z[n], [64/255,64/255,255/255], 0.1, index, X, Y, Z, I, J, K, F);
903+
index = addPointMarker(unitSphere, p.x[n], p.y[n], p.z[n], inputMC[n], 0.1, index, X, Y, Z, I, J, K, F);
904904
}
905905

906906
return {

0 commit comments

Comments
 (0)