Commit 3674d8c0 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix radius of sphere

parent 6fe9c88d
......@@ -147,7 +147,7 @@ dtkVisualizationDecoratorVectorStreamTracer::dtkVisualizationDecoratorVectorStre
d->source_sphere = vtkSmartPointer<vtkSphereRepresentation>::New();
d->source_sphere->SetPhiResolution(7);
d->source_sphere->SetThetaResolution(7);
d->source_sphere->SetRadius(150.0);
d->source_sphere->SetRadius(1.0);
d->source_sphere->GetPolyData(d->source_data);
d->source_sphere->SetRepresentationToWireframe();
d->source_sphere->RadialLineOff();
......@@ -395,6 +395,7 @@ void dtkVisualizationDecoratorVectorStreamTracer::setData(const QVariant& data)
d->sp_radius->setValue(box.GetDiagonalLength()/500.0);
d->source_sphere->SetCenter(center);
d->source_sphere->SetRadius(box.GetDiagonalLength()/20.0);
d->source_sphere->Modified();
d->source_line->SetPoint1WorldPosition(pos1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment