]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/SphereMeshSource.cxx
More on graph editor
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / SphereMeshSource.cxx
index c7c671b6e3e3a6871bc4ef1421ab12e3d330ab91..2ed0b7d79abc994afe3a2fbcfe8e93af206516ca 100644 (file)
@@ -12,11 +12,14 @@ SphereMeshSource( )
 {
   this->_MakeOutput< cpPlugins::Interface::Mesh >( "Output" );
 
-  double point[ 3 ] = { double( 0 ) };
-  this->m_Parameters->ConfigureAsPoint( "Center", 3, point );
-  this->m_Parameters->ConfigureAsReal( "Radius", 1 );
-  this->m_Parameters->ConfigureAsUint( "PhiResolution", 8 );
-  this->m_Parameters->ConfigureAsUint( "ThetaResolution", 8 );
+  this->m_Parameters->ConfigureAsPoint( "Center" );
+  this->m_Parameters->ConfigureAsReal( "Radius" );
+  this->m_Parameters->ConfigureAsUint( "PhiResolution" );
+  this->m_Parameters->ConfigureAsUint( "ThetaResolution" );
+
+  this->m_Parameters->SetReal( "Radius", 1 );
+  this->m_Parameters->SetUint( "PhiResolution", 8 );
+  this->m_Parameters->SetUint( "ThetaResolution", 8 );
 }
 
 // -------------------------------------------------------------------------