MantisBT - VTK
View Issue Details
0006291VTK(No Category)public2008-01-31 10:512016-08-12 09:54
Jerome Robert 
Utkarsh Ayachit 
normalmajoralways
closedmoved 
 
 
0006291: [Regression in CVS head] Very slow with 100 vtkActor
With current CVS head, the rendering is very slow when we have more than 50 actors. It's a regression as with ParaView-3-2-1 tag it was good.
This java program run smoothly with ParaView-3-2-1 tag but is nearly frozen with current head.

public class BugManyActor
{
    /** Create a cone actor */
    private static vtkActor createDummyActor()
    {
        vtkConeSource cone = new vtkConeSource();
        cone.SetHeight(3.0);
        cone.SetRadius(1.0);
        cone.SetResolution(30);
        vtkPolyDataMapper map = new vtkPolyDataMapper();
        map.SetInput(cone.GetOutput());
        vtkActor coneActor = new vtkActor();
        coneActor.SetMapper(map);
        return coneActor;
    }

    private static void addDummyCones(int n, int m, vtkRenderer renderer)
    {
        for (int i = 0; i < n; i++)
            for (int j = 0; j < m; j++)
            {
                vtkActor actor = createDummyActor();
                actor.SetPosition(4 * i, 4 * j, 0);
                renderer.AddActor(actor);
            }
    }

    public static void main(String[] args) throws Exception
    {
        System.loadLibrary("vtkRenderingJava");
        
        vtkRenderer ren1 = new vtkRenderer();
        addDummyCones(33, 33, ren1);

        vtkRenderWindow renWin = new vtkRenderWindow();
        renWin.AddRenderer(ren1);
        ren1.ResetCamera();

        vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();
        iren.SetRenderWindow(renWin);

        vtkInteractorStyleTrackballCamera style =
            new vtkInteractorStyleTrackballCamera();
        iren.SetInteractorStyle(style);
        iren.Initialize();
        iren.Start();
    }
}
No tags attached.
Issue History
2008-01-31 10:51Jerome RobertNew Issue
2008-02-06 09:31Jeff BaumesStatusbacklog => tabled
2008-02-06 09:31Jeff BaumesAssigned To => Utkarsh Ayachit
2008-04-02 05:00Julian IbarzNote Added: 0011028
2008-05-28 06:54Julian IbarzNote Added: 0012136
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036950
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0011028)
Julian Ibarz   
2008-04-02 05:00   
Hi,

Is there a begin of a solution that has been founded for this bug or is the bug always unknown ?

Thanks.
(0012136)
Julian Ibarz   
2008-05-28 06:54   
The problem doesn't exist in the last cvs version, I think it has been solved. May be the report status should be update ?
(0036950)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.