ss = vtkSphereSource::New();
superquadratic = vtkSuperquadricSource::New();
cs = vtkCubeSource::New();
- tg = vtkTensorGlyph::New();
+
+ tg = NULL;
+
pdn = vtkPolyDataNormals::New();
pd = vtkPolyData::New();
pod = vtkPointData::New();
{
if(GetTypeForm()==2) // source superquadratic
{
+ if (tg==NULL) { tg = vtkTensorGlyph::New(); }
+
superquadratic->SetThetaResolution(20);
superquadratic->SetPhiResolution(20);
#if VTK_MAJOR_VERSION <= 5