Ignore:
Timestamp:
Jul 17, 2012 2:12:57 PM (12 years ago)
Author:
ldelgass
Message:

Bump up default resolutions of glyphs shapes slightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/RpGlyphs.cpp

    r3095 r3104  
    107107        _glyphSource = vtkSmartPointer<vtkLineSource>::New();
    108108        break;
    109     case ARROW:
     109    case ARROW: {
    110110        _glyphSource = vtkSmartPointer<vtkArrowSource>::New();
    111         break;
    112     case CONE:
     111        vtkSmartPointer<vtkArrowSource> arrow = vtkArrowSource::SafeDownCast(_glyphSource);
     112        arrow->SetTipResolution(8);
     113        arrow->SetShaftResolution(8);
     114    }
     115        break;
     116    case CONE: {
    113117        _glyphSource = vtkSmartPointer<vtkConeSource>::New();
     118        vtkSmartPointer<vtkConeSource> cone = vtkConeSource::SafeDownCast(_glyphSource);
     119        cone->SetResolution(8);
     120    }
    114121        break;
    115122    case CUBE:
     
    119126    case CYLINDER: {
    120127        vtkSmartPointer<vtkCylinderSource> csource = vtkSmartPointer<vtkCylinderSource>::New();
    121         vtkCylinderSource::SafeDownCast(csource)->SetResolution(6);
     128        csource->SetResolution(8);
    122129        _glyphSource = vtkSmartPointer<vtkTransformPolyDataFilter>::New();
    123130        _glyphSource->SetInputConnection(csource->GetOutputPort());
     
    139146        vtkPlatonicSolidSource::SafeDownCast(_glyphSource)->SetSolidTypeToOctahedron();
    140147        break;
    141     case SPHERE:
     148    case SPHERE: {
    142149        _glyphSource = vtkSmartPointer<vtkSphereSource>::New();
     150        vtkSmartPointer<vtkSphereSource> sphere = vtkSphereSource::SafeDownCast(_glyphSource);
     151        sphere->SetThetaResolution(14);
     152        sphere->SetPhiResolution(14);
     153    }
    143154        break;
    144155    case TETRAHEDRON:
     
    169180    }
    170181#endif
     182
    171183}
    172184
Note: See TracChangeset for help on using the changeset viewer.