Ignore:
Timestamp:
Feb 21, 2013, 8:03:33 PM (12 years ago)
Author:
ldelgass
Message:

Cutplane fixes: use outline where cutplane intersects data set bounding box
rather than tight outline around geometry resulting from cut, which may be empty
(e.g. for a 3D Delaunay triangulation of a point cloud).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Rappture 1.2/packages/vizservers/vtkvis/RpCutplane.h

    r3211 r3316  
    1717#include <vtkPlane.h>
    1818#include <vtkOutlineFilter.h>
     19#include <vtkOutlineSource.h>
    1920#include <vtkGaussianSplatter.h>
    2021
     
    2526namespace Rappture {
    2627namespace VtkVis {
     28
     29//#define CUTPLANE_TIGHT_OUTLINE
    2730
    2831/**
     
    110113    vtkSmartPointer<vtkCutter> _cutter[3];
    111114    vtkSmartPointer<vtkPlane> _cutPlane[3];
     115#ifdef CUTPLANE_TIGHT_OUTLINE
    112116    vtkSmartPointer<vtkOutlineFilter> _outlineFilter[3];
     117#else
     118    vtkSmartPointer<vtkOutlineSource> _outlineSource[3];
     119#endif
    113120    vtkSmartPointer<vtkGaussianSplatter> _splatter;
    114121};
Note: See TracChangeset for help on using the changeset viewer.