1 #include <MeshSources/CylinderSource.h>
2 #include <cpPlugins/DataObjects/Mesh.h>
4 #include <vtkCylinderSource.h>
6 // -------------------------------------------------------------------------
7 cpPluginsMeshSources::CylinderSource::
11 this->_ConfigureOutput< cpPlugins::DataObjects::Mesh >( "Output" );
12 this->m_Parameters.ConfigureAsReal( "Height", 1 );
13 this->m_Parameters.ConfigureAsReal( "Radius", 1 );
14 this->m_Parameters.ConfigureAsUint( "Resolution", 8 );
17 // -------------------------------------------------------------------------
18 cpPluginsMeshSources::CylinderSource::
23 // -------------------------------------------------------------------------
24 void cpPluginsMeshSources::CylinderSource::
27 auto src = this->_CreateVTK< vtkCylinderSource >( );
28 src->SetHeight( this->m_Parameters.GetReal( "Height" ) );
29 src->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
30 src->SetResolution( this->m_Parameters.GetUint( "Resolution" ) );
32 this->GetOutput( "Output" )->SetVTK( src->GetOutput( ) );