Hi Pravin,
thank you for your interest in TTK. For a private project I was able to do exactly what you intend to do, so it is definitely possible. In my setup I was running all the computation in paraview and used the ttkWebSocketIO filter to send the result of the computation to the browser via a websocket conenction. In short, the ttkWebSocketIO filter serializes its input vtkDataObject and sends it to the browser, where a small js library called ttkWebSocketIO.js creates a corresponding js object. Have a look at the ttkWebSocketIO standalone examples to get going:
https://github.com/topology-tool-kit/ttk/tree/dev/standalone/WebSocketIO
To use the ttkWebSocketIO filter you will need to build ttk with "ttkWebSocketIO on" which depends on this external header-only library:
https://github.com/zaphoyd/websocketpp
If you need further assistance do not hesitate to ask.
Best
Jonas Lukasczyk
> On 23.9.22 05:20 CEST Pravin Poudel <
prvnp...@gmail.com> wrote:
>
>
> Hi,
>
>
> Iwantto implement the ttk in my web project whereI wantto get the segmentation outputfrom the contourtree generator filter !!!
> I am not able to figure out if there is any package or way I can use ttk in my js project. Can you please help me to get some ideas about this issue !!
> Thank you
>
> With Best Regards,
> Pravin Poudel
> Research Assistant,Computing Elevated Lab, USU
>
+1-4355549628
> Logan, USA
>
> --
> You received this message because you are subscribed to the Google Groups "ttk-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ttk-users+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ttk-users/CAPtbznZap%3DhpaGM8t7FWWKmDdE2GdsHuXbRzpDFkTdr9-xjDBw%40mail.gmail.com (
https://groups.google.com/d/msgid/ttk-users/CAPtbznZap%3DhpaGM8t7FWWKmDdE2GdsHuXbRzpDFkTdr9-xjDBw%40mail.gmail.com?utm_medium=email&utm_source=footer).
>