Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the subset of vtk that vtk.js covers. #256

Open
phcerdan opened this issue May 24, 2017 · 11 comments
Open

Specify the subset of vtk that vtk.js covers. #256

phcerdan opened this issue May 24, 2017 · 11 comments

Comments

@phcerdan
Copy link

First of all, this is awesome, congrats to put vtk at web scale with this project!

I am a half way developing a classic Itk4-Vtk7-Qt5 app, but I am tempted to drop Qt it and do it using vtk.js and electron ( or even without electron).

ITK provides itkImageToVTKImageFilter for converting itk images to vtk, and you already have that.
I am also using a vtkGraphLayoutView, and vtkImagePlaneWidget ( derived from vtkPolyDataSourceWidget). Are they currently supported in vtk.js?

Thanks, and sorry if it would be better to ask this in the vtk-users (or dev?) mail list.

@jourdain
Copy link
Collaborator

This is the perfect place to ask questions. Regarding the subset that vtk.js cover, as of today, vtk.js support vtkImageData and vtkPolyData for volume and geometry rendering. We have a couple geometry sources (plane, line, cube) and few filters (warp, calculator) and some custom mappers that allow to render molecules.

We don't have any of the InfoViz / GraphLayoutView or Widgets and I don't see them any time soon unless a dedicated funding want to push them forward.

@jourdain jourdain added the type: question❓ Help wanted label May 24, 2017
@phcerdan
Copy link
Author

@jourdain thanks for the info. I can not port it then (yet) :(

How many hours would require the implementation of the GraphLayoutView? Maybe you can apply to the Mozilla Science mini-grants (ending 3th Jun) for implementing a specific feature? Scientific Visualization in the Web, you are going to get it! And also, and sorry for asking too much, but isn't Kitware that dedicated funding?

@jourdain
Copy link
Collaborator

I'm not sure to understand what you mean by but isn't Kitware that dedicated funding?.

I haven't looked at the code of the GraphLayoutView and also how much of its dependency may be missing from vtk.js.

If you really fill like it, you can contribute that class to the project. And we can help you in that process.

@phcerdan
Copy link
Author

phcerdan commented May 24, 2017

I misunderstood I don't see them any time soon unless a dedicated funding want to push them forward, not really used to read funding when you were asking for time contributions, not money. Sorry.

I would love to help/collaborate, but not much experience with js. Do you have any guideline on how to implement a class, or any particular example in the source code that I can follow? Thanks

@jourdain
Copy link
Collaborator

That will be a starting point if you want to contribute.

Otherwise I meant both: funding us to do the work now or contribute it as a community member.

@DenielNCore
Copy link

I'm not sure if this is the right place for my question, but whatever.

Will the code be implemented (rewritten) to the JavaScript/TypeScript standards and its capabilities?

@jourdain
Copy link
Collaborator

@DenielNCore, I'm not sure what is your question exactly? Are you talking about full VTK or just GraphLayoutView?

@DenielNCore
Copy link

@jourdain I'm talking about VTK.js in general.

@jourdain
Copy link
Collaborator

vtk.js is fully written in JavaScript along with TypeScript definition.

But in short taken from the README: vtk.js aims to be a subset of VTK and provide 3D rendering using WebGL (+WebGPU) for both geometry and volume rendering.

@DenielNCore
Copy link

I'm more likely talking about the approaches that were used: the class system and imitation of inheritance, excessive data encapsulation and not using the main advantages of the language - all this is not inherent in JavaScript.
Of course, I understand that this is a port from C ++, but I would like to understand whether the library will be updated in the future to the state when it will be JS developer-friendly.

@jourdain
Copy link
Collaborator

What do you see as the main advantage of the language that we don't leverage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants