Package vtk

Examples of vtk.vtkPolyDataMapper


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

        vtkPolyDataMapper mapper = new vtkPolyDataMapper();
        mapper.SetInput(tube.GetOutput());
        mapper.ScalarVisibilityOn();
        mapper.SetScalarModeToUsePointFieldData();
        mapper.SelectColorArray("colors");

        vtkActor actor = new vtkActor();
        actor.SetMapper(mapper);
        actor.GetProperty().SetOpacity(opacity);
        actor.GetProperty().BackfaceCullingOff();
View Full Code Here


    vtkConeSource coneSource = new vtkConeSource();
    coneSource.SetRadius(2);
    coneSource.SetAngle(15);
    coneSource.SetHeight(2);
    coneSource.SetResolution(10);
    vtkPolyDataMapper coneMapper = new vtkPolyDataMapper();
    coneMapper.SetInput(coneSource.GetOutput());
    vtkActor coneActor = new vtkActor();
    coneActor.SetMapper(coneMapper);
    // Add actor in 3D Panel
    panel3D.GetRenderer().AddActor(coneActor);
    // Build Java Frame and include the VTK view
View Full Code Here

TOP

Related Classes of vtk.vtkPolyDataMapper

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.