[vtkusers] Create PolyData in vtk.js

Sebastien Jourdain sebastien.jourdain at kitware.com
Fri Jul 27 14:36:49 EDT 2018


Ideally we would implement a standard unstructured grid reader which will
just reproduce the same structure as the one available in C++ without
processing/conversion to polydata.
Then you will have to apply a filter that will extract the surface of each
of those cells and remove the inner surfaces that in fact aims to convert
your unstructured grid into a PolyData.

In order to implement that filter, you will need:
- a table for each cell type that list its surface cells
(triangle/quad/line/vertex from all the 3d ones)
- Then you will have to gather all those surface cells and eliminate those
which are present twice (internal face) (cell pointing to the same set of
point id)
- You will have to only use the points that are use by those cells to
produce that polydata and remap any data array based on that new indexing
system for both cells and points.

In any case you can either implement it yourself, or Kitware can help via
consulting/support contract.

HTH,

Seb

On Fri, Jul 27, 2018 at 1:54 AM marf <marvin.huber at basf.com> wrote:

> Ok, I just looked at your answer and since there is no filter for that,
> could
> you hint me in any direction on how to determine which faces are internal
> and can be removed? I'm not exactly experienced with computer graphics and
> didn't find a solution yet
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> 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:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180727/51af5d2e/attachment.html>


More information about the vtkusers mailing list