X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSphereSource.xml;h=463fca033660643d7873fc5932cd6c315c2c7aaa;hb=333b90638d58e788efffee2c61da9e152016e292;hp=bad1264e4290c4d2c1541be59b9caaee9f554acc;hpb=b8fe96fbebd153e92de1f1bfcad48ad009365df5;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSphereSource.xml b/packages/vtk/src/bbvtkSphereSource.xml index bad1264..463fca0 100644 --- a/packages/vtk/src/bbvtkSphereSource.xml +++ b/packages/vtk/src/bbvtkSphereSource.xml @@ -7,26 +7,39 @@ mesh vtkSphereSource.h -vtkSphereSource +vtkSphereSource + - - - + + +
-SetCenter(bbGetInputCenterX(), 
-          bbGetInputCenterY(), 
-          bbGetInputCenterZ());
-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);
+
+