Skip to content

Displaying content from .vtk file in cookiecutter template projec #514

Closed Answered by jourdain
NachoPonisio asked this question in Q&A
Discussion options

You must be logged in to vote

Need to replace

with vtk.VtkView() as vtk_view:                # vtk.js view for local rendering
                        self.ctrl.reset_camera = vtk_view.reset_camera  # Bind method to controller
                        with vtk.VtkGeometryRepresentation():      # Add representation to vtk.js view
                            vtk.VtkAlgorithm(                      # Add ConeSource to representation
                                vtk_class="vtkConeSource",          # Set attribute value with no JS eval
                                state=("{ resolution }",)          # Set attribute value with JS eval
                            )

by

with vtk.VtkRemoteView(renderWindow) as vtk_view:
    s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by NachoPonisio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants