[Paraview-developers] Accessing Delaunay3D filter inside my reader plugin.

Chiranjib Sur sur.chiranjib at gmail.com
Sun Jul 31 13:34:35 EDT 2016


This might also be useful for you
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput

Chiranjib

On Sun, Jul 31, 2016 at 11:00 PM, Chiranjib Sur <sur.chiranjib at gmail.com>
wrote:

> This part of the example describes about the input connection, ports etc
>
>  // Generate a mesh from the input points. If Alpha is non-zero, then
>   // tetrahedra, triangles, edges and vertices that lie within the
>   // alpha radius are output.
>   vtkSmartPointer<vtkDelaunay3D> delaunay3DAlpha =
>     vtkSmartPointer<vtkDelaunay3D>::New();
>   delaunay3DAlpha->SetInputConnection (cleaner->GetOutputPort());
>   delaunay3DAlpha->SetAlpha(0.1);
>
>
> VTK pipeline is the place you need to explore (
> http://www.vtk.org/Wiki/VTK/Tutorials/New_Pipeline).
>
> Chiranjib
>
> On Sun, Jul 31, 2016 at 10:55 PM, sumeet kumar <sumeet.kumar507 at gmail.com>
> wrote:
>
>> Hi Chiranjib,
>>
>> I already saw this example. This example assumes that I have a* .vtp
>> file . *
>>
>> But actually I have a hdf5 file where I have all the relevant data in my
>> format. With that I create a unstructured mesh  <vtkUnstructuredGrid> of
>> points and now want to use that point data to generate the Delaunay3D mesh.
>> Which means I already have a cloud of points with me in <
>> <vtkUnstructuredGrid>  object. Now I want to use this object to create a
>> Delaunay3D mesh.  Basically what I do not understand is how to deal with
>> input connection, output ports etc.. or is there any simple way to deal
>> with this.
>>
>>
>> Sumeet
>>
>> On Sun, Jul 31, 2016 at 10:17 AM, Chiranjib Sur <sur.chiranjib at gmail.com>
>> wrote:
>>
>>> Hi Sumit,
>>> Have you explored the examples for Delaunay3D in vtk. The example given
>>> here (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Modelling/Delaunay3D)
>>> has all the details about how to use this filer inside your C++ code.
>>> If you have already seen it then post some more details about your
>>> problem.
>>>
>>> Best wishes,
>>> Chiranjib
>>>
>>> On Sat, Jul 30, 2016 at 12:43 PM, sumeet kumar <
>>> sumeet.kumar507 at gmail.com> wrote:
>>>
>>>>
>>>> I am writing a reader plug-in which reads a hdf5 file and creates a
>>>> unstructured mesh of nodes & elements and also unstructured mesh of only
>>>> gauss points.
>>>> The next what I want to do is to take this unstructured mesh of points
>>>> and generate a Delaunay3D mesh.
>>>> I can achieve the same in Paraview during rendering (in the GUI phase).
>>>> But I want to achieve this inside the c++ code automatically. Basically I
>>>> want to use the unstructured mesh <vtkUnstructuredGrid> of points to
>>>> generate the Delaunay3D mesh (vtkUnstructuredGrid) and save it for further
>>>> exploitation .
>>>>
>>>>
>>>> Best
>>>> Sumeet
>>>>
>>>> --
>>>>
>>>> Sumeet Kumar Sinha
>>>> Graduate Student
>>>> Phone: (+1)  <%28%2B91%29%209910516219>5306018271
>>>> Website : http://www.sumeetsinha.in/
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Search the list archives at:
>>>> http://markmail.org/search/?q=Paraview-developers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>>
>>>>
>>>
>>
>>
>> --
>>
>> Sumeet Kumar Sinha
>> Graduate Student
>> Phone: (+1)  <%28%2B91%29%209910516219>5306018271
>> Website : http://www.sumeetsinha.in/
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160731/b49265f4/attachment.html>


More information about the Paraview-developers mailing list