Updates will be applied - 12:30pm EDT (UTC -400). Site will be down for around 30

Commit 110169fd authored by Xiaoxiao Liu's avatar Xiaoxiao Liu

FIX: for degenerate tree with a single leave.

To render a tree with a single leave node,
the TriangleLookupTable range nneeds to be
modified.

Change-Id: If374953a8d658392cfd0f6bf5b5b620aa2dcea24
parent a7d31f98
......@@ -143,7 +143,7 @@ void vtkTreeHeatmapItem::SetTree(vtkTree *tree)
this->TriangleLookupTable->SetNumberOfTableValues(256);
this->TriangleLookupTable->SetHueRange(0.5, 0.045);
this->TriangleLookupTable->SetRange(
2.0, static_cast<double>(numLeavesInBiggestSubTree));
1.0, static_cast<double>(numLeavesInBiggestSubTree));
this->TriangleLookupTable->Build();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment