Ignore:
Timestamp:
Jul 24, 2013, 2:16:00 PM (11 years ago)
Author:
ldelgass
Message:

Use preinterpolation by default on polydata with a scalar field, for color
scalars use triangle interpolation.

File:
1 edited

Legend:

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

    r3832 r3836  
    251251    }
    252252
    253     setInterpolateBeforeMapping(false);
     253    setInterpolateBeforeMapping(true);
    254254
    255255    if (_lut == NULL) {
     
    262262            // If DataSet is a PolyData with a scalar field, or has color scalars
    263263            if (pd != NULL || numComp > 1) {
     264                if (numComp > 1) {
     265                    // If we have color scalars, use triangle interpolation
     266                    setInterpolateBeforeMapping(false);
     267                }
    264268                setColorMode(COLOR_BY_SCALAR);
    265269            } else {
Note: See TracChangeset for help on using the changeset viewer.