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

Bill Lorensen bill.lorensen at gmail.com
Fri Feb 17 22:41:21 EST 2017


Here . is a c++ example that splits polygonal meshes


On Fri, Feb 17, 2017 at 9:13 PM, kadek <ananta.satriadi at gmail.com> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SplitPolyData.cxx
Type: application/octet-stream
Size: 1890 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170217/79d27eba/attachment.obj>


More information about the vtkusers mailing list