Package vtk

Examples of vtk.vtkCleanPolyData


        polyData.SetPoints(points);
        polyData.SetLines(cellArray);
        polyData.GetPointData().AddArray(colorArray);
        polyData.GetPointData().SetScalars(radiusArray);

        vtkCleanPolyData cleanFilter = new vtkCleanPolyData();
        cleanFilter.SetInput(polyData);
        cleanFilter.Update();

        vtkTubeFilter tube = new vtkTubeFilter();
        tube.SetVaryRadiusToVaryRadiusByAbsoluteScalar();
        tube.SetInput(cleanFilter.GetOutput());
        tube.SetNumberOfSides(20);
        tube.CappingOn();

        vtkPolyDataMapper mapper = new vtkPolyDataMapper();
        mapper.SetInput(tube.GetOutput());
View Full Code Here

TOP

Related Classes of vtk.vtkCleanPolyData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.