I’m having some issues getting my remote rendering working. It all works perfectly fine with the the default cone from vtk (code from here:
https://github.com/dmreagan/vtk-remote-render ), but when I adapt the code to use my own model with interpolation, I get the error:
"WebSocket connection to '<a href="ws://localhost:1234/ws" class="">ws://localhost:1234/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED”
I can see the serve side has rendered, but the client side is blank.
My code is below, any help would be much appreciated!
This module is a VTK Web server application.
The following command line illustrates how to use it::
$ vtkpython .../vtk_server.py
Any VTK Web executable script comes with a set of standard arguments that
can be overriden if need be::
Interface on which the HTTP server will listen.
Port number on which the HTTP server will listen.
Directory that you want to serve as static web content.
By default, this variable is empty which means that we rely on another server
to deliver the static content and the current process only focuses on the
WebSocket connectivity of clients.
Secret key that should be provided by the client to allow it to make any
WebSocket communication. The client will assume if none is given that the
server expects "wslink-secret" as the secret key.
# import to process args
# import maths modules
# from Interpolation import *
# import vtk modules.
import wslink as vtk_wslink
# import utility modules
# since Python 2.6 and earlier don't have argparse, we simply provide
# the source for the same as _argparse and we use it instead.