SphereMeshSource( )
: Superclass( )
{
- this->_MakeOutput< cpPlugins::Interface::Mesh >( "Output" );
+ this->_AddInput( "Center" );
+ this->_AddOutput< cpPlugins::Interface::Mesh >( "Output" );
- this->m_Parameters->ConfigureAsPoint( "Center" );
this->m_Parameters->ConfigureAsReal( "Radius" );
this->m_Parameters->ConfigureAsUint( "PhiResolution" );
this->m_Parameters->ConfigureAsUint( "ThetaResolution" );
std::string cpPlugins::BasicFilters::SphereMeshSource::
_GenerateData( )
{
- itk::Point< double, 3 > center =
- this->m_Parameters->GetPoint< itk::Point< double, 3 > >( "Center", 3 );
- // TODO: center.Fill( double( 0 ) ); // TODO
+ itk::Point< double, 3 > center;
+ center.Fill( double( 0 ) );
+ /* TODO
+ itk::Point< double, 3 > center =
+ this->m_Parameters->GetPoint< itk::Point< double, 3 > >( "Center", 3 );
+ */
double radius = this->m_Parameters->GetReal( "Radius" );
unsigned int phi = this->m_Parameters->GetUint( "PhiResolution" );
unsigned int theta = this->m_Parameters->GetUint( "ThetaResolution" );