[vtkusers] Spliting polydata using OBBDicer and store each piece as invidual file.

kadek ananta.satriadi at gmail.com
Fri Feb 17 21:13:38 EST 2017


Hi Bill, thank you for your reply.
How exactly does it work?
It is where I stuck.

        vtkOBBDicer dice = new vtkOBBDicer();
        dice.SetInputConnection(normal.GetOutputPort());
        dice.SetNumberOfPieces(8);
        dice.SetDiceModeToSpecifiedNumberOfPieces();
        dice.Update();
       
        vtkThreshold th = new vtkThreshold();
        th.SetInputConnection(dice.GetOutputPort());
        th.SetInputArrayToProcess(0, 0, 0, 0, "vtkOBBDicer_GroupIds");
        // Missing something here
       th.Update();

       vtkPolyData piece1 = ?
      vtkPolyData piece2 = ?
     vtkPolyData piece3 = ?
     vtkPolyData piece4 = ?

I dont know how the vtkThreshold is splitting up (or accessing) each piece
from the dicer.
Any idea?

Cheers,
Kadek



--
View this message in context: http://vtk.1045678.n5.nabble.com/Spliting-polydata-using-OBBDicer-and-store-each-piece-as-invidual-file-tp5742235p5742237.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list