X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSphereSource.xml;h=463fca033660643d7873fc5932cd6c315c2c7aaa;hb=97d535e9ee0ea003f7d31aca910f34bff316a119;hp=b2e7d02ea0430d0189d3d56c3026b17b65131c66;hpb=a3d418ccb857ef25119b90d57d88543ae744d9f4;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSphereSource.xml b/packages/vtk/src/bbvtkSphereSource.xml index b2e7d02..463fca0 100644 --- a/packages/vtk/src/bbvtkSphereSource.xml +++ b/packages/vtk/src/bbvtkSphereSource.xml @@ -7,26 +7,39 @@ mesh vtkSphereSource.h -vtkSphereSource +vtkSphereSource + - - - + + +
-mVtkObject->SetCenter(bbGetInputCenterX(), 
-          bbGetInputCenterY(), 
-          bbGetInputCenterZ());
-mVtkObject->Update();
+ 
+if (bbGetInputActive()==true)
+{
+
+	bbGetVtkObject()->SetCenter(bbGetInputCenterX(), bbGetInputCenterY(), bbGetInputCenterZ());
+   //bbGetVtkObject()->SetPhiResolution(bbGetInputPhiResolution());
+   //bbGetVtkObject()->SetThetaResolution(bbGetInputThetaResolution());
+   //bbGetVtkObject()->SetRadius(bbGetInputRadius());
+   //printf("EED box vtk:SphereSource theta=%d  phi=%d\n", bbGetInputThetaResolution() , bbGetInputPhiResolution());
+	bbGetVtkObject()->Update();
+}
+
 
+
+  bbSetInputActive(true);
+
+