int maxX = ext[1]-ext[0]+1;
int maxY = ext[3]-ext[2]+1;
int maxZ = ext[5]-ext[4]+1;
- if (firsttime==true)
+
+ if (backColorType!=bbGetInputColorType() )
{
- firsttime=false;
+ backColorType = bbGetInputColorType();
+ if (colors!=NULL) { colors->Delete(); }
+// if (colorLookupTable!=NULL) { colorLookupTable->Delete(); }
+// if (colorLookupTableWL!=NULL) { colorLookupTableWL->Delete(); }
+
+
+// firsttime=false;
// Generate the colors for each point based on the color map
colors = vtkUnsignedCharArray::New();
colors->SetNumberOfComponents(3);
- colors->SetName("Colors");
+// colors->SetName("ColorsEED");
// Create the color map
if (bbGetInputColorType()==1)
{
colorLookupTable->SetTableValue(11,0.5,0.5,1 ,1);
} // type 3
} // firsttime
+
+
+
bbGetInputMesh()->GetPointData()->SetScalars(colors);
if (bbGetInputColorType()==1)
{
bbSetInputTransform(NULL);
bbSetInputExternalLookupTable(NULL);
- firsttime = true;
+ backColorType = -999;
colors = NULL;
colorLookupTable = NULL;
colorLookupTableWL = NULL;