MCPcopy Create free account
hub / github.com/MITK/MITK / CreateTexturedSphere

Function CreateTexturedSphere

Modules/Core/test/mitkSurfaceVtkMapper3DTest.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include <vtkTexturedSphereSource.h>
20
21mitk::Surface::Pointer CreateTexturedSphere()
22{
23 auto source = vtkSmartPointer<vtkTexturedSphereSource>::New();
24 source->SetThetaResolution(64);
25 source->SetPhiResolution(32);
26 source->SetRadius(16.0);
27 source->Update();
28
29 auto surface = mitk::Surface::New();
30 surface->SetVtkPolyData(source->GetOutput());
31
32 return surface;
33}
34
35void AddGeneratedDataToStorage(mitk::DataStorage *dataStorage)
36{

Callers 1

Calls 4

SetVtkPolyDataMethod · 0.80
NewFunction · 0.50
UpdateMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected