Misc Filters

vtkElevationFilter

generate scalars along a specified direction.

vtkElevationFilter is a filter to generate scalar values from a dataset. The scalar values lie within a user specified range, and are generated by computing a projection of each dataset point onto a line. The line can be oriented arbitrarily. A typical example is to generate scalars based on elevation or height above a plane.

vtkElevationFilter範例:

vtkElevationFilter *elev = vtkElevationFilter::New();
        elev->SetInput( shrink->GetOutput() );
        elev->SetLowPoint(-1,-1,-1);
        elev->SetHighPoint( 1, 1, 1);
        elev->SetScalarRange(0,1);
或是在ParallelIso之中的例子
vtkElevationFilter *elev=vtkElevationFilter::New();
        elev->SetInput(iso->GetOutput());
        val = (myid+1) / static_cast(numProcs);
        elev->SetScalarRange(val, val+0.001);

APIs:


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?