X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSphereSource.xml;h=463fca033660643d7873fc5932cd6c315c2c7aaa;hb=97d535e9ee0ea003f7d31aca910f34bff316a119;hp=483897fa2cd111267393ca8842d93d4c12dbfdc6;hpb=f303df63e2a2e33d698c974858f288058d980ae4;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSphereSource.xml b/packages/vtk/src/bbvtkSphereSource.xml index 483897f..463fca0 100644 --- a/packages/vtk/src/bbvtkSphereSource.xml +++ b/packages/vtk/src/bbvtkSphereSource.xml @@ -1,73 +1,45 @@ - + jpr@creatis.insa-lyon.fr
Creates a Sphere (bbfication of vtkSphereSource)
mesh vtkSphereSource.h -vtkSphereSource +vtkSphereSource - -Output Sphere - - - -Center X coord - - - -Center Y coord - - - -Center Z coord - - - -Sphere PhiResolution - - - -Sphere Radius - - - -Sphere ThetaResolution - + + + + + + + +
-SetCenter(bbGetInputCenterX(), 
-          bbGetInputCenterY(), 
-          bbGetInputCenterZ());
-SetPhiResolution(bbGetInputPhiResolution());
-SetRadius((double)bbGetInputRadius());
-SetThetaResolution(bbGetInputThetaResolution());
-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);
+
+