Package vtk

Examples of vtk.vtkCellArray


//        axis.GetProperty().SetColor(255, 255, 255);
//        getRenderer().AddActor(axis);
    }

    public void addTube(vtkPoints points, vtkUnsignedCharArray colorArray, vtkFloatArray radiusArray, double opacity) {
        vtkCellArray cellArray = new vtkCellArray();
        cellArray.InsertNextCell(points.GetNumberOfPoints());
        for (int j = 0; j < points.GetNumberOfPoints(); j++) {
            cellArray.InsertCellPoint(j);
        }

        vtkPolyData polyData = new vtkPolyData();
        polyData.SetPoints(points);
        polyData.SetLines(cellArray);
View Full Code Here

TOP

Related Classes of vtk.vtkCellArray

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.