Skip to content

Commit

Permalink
Sample workaround for missing color issue #855.
Browse files Browse the repository at this point in the history
  • Loading branch information
David C. Lonie committed Oct 30, 2014
1 parent bf352fd commit ef6d2a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Packages/vcs/Lib/VTKPlots.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def plot2D(self,data1,data2,tmpl,gm):
# (we need one for each mapper because of cmaera flips)
ren = self.createRenderer()
self.renWin.AddRenderer(ren)
self.setLayer(ren,tmpl.data.priority)
self.setLayer(ren,tmpl.data.priority + 1)
ren.AddActor(act)
vcs2vtk.fitToViewport(act,ren,[tmpl.data.x1,tmpl.data.x2,tmpl.data.y1,tmpl.data.y2],wc=[x1,x2,y1,y2],geo=geo)

Expand Down
6 changes: 3 additions & 3 deletions Packages/vcs/Lib/vcs2vtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def putMaskOnVTKGrid(data,grid,actorColor=None,cellData=True,deep=True):
lut.SetNumberOfTableValues(1)
r,g,b = actorColor
lut.SetNumberOfTableValues(2)
lut.SetTableValue(0,r/100.,g/100.,b/100.)
lut.SetTableValue(1,r/100.,g/100.,b/100.)
lut.SetTableValue(0,r/100.,g/100.,b/100., 1.)
lut.SetTableValue(1,r/100.,g/100.,b/100., 0.)
mapper.SetLookupTable(lut)
mapper.SetScalarRange(1,1)
mapper.SetScalarRange(0,1)
if grid.IsA("vtkStructuredGrid"):
if not cellData:
grid.SetPointVisibilityArray(msk)
Expand Down

0 comments on commit ef6d2a4

Please sign in to comment.