GithubHelp home page GithubHelp logo

Comments (6)

banesullivan avatar banesullivan commented on June 19, 2024 1

Ah I think all of those things are just applying a spherical transform to the data and not actually using a spherical coordinate system

Sent with GitHawk

from pyvista-support.

banesullivan avatar banesullivan commented on June 19, 2024 1

With the comments in #67, I think this is resolved. Spherical coordinate systems aren’t supported but you can apply a spherical transform to any mesh in the methods described to achieve the same effect which is what ParaView does (to my knowledge)

from pyvista-support.

banesullivan avatar banesullivan commented on June 19, 2024

Hi @dennissergeev - apologies for the slow response!

Unfortunately, VTK/PyVista does not support spherical coordinates in the rendering scene. You'd have to convert the spherical coordinates you have to cartesian using a transform of some sort.

I have a feeling you could make a structured grid of this sphere and still have a 3D volume. I'll try to see what I can do with your example above when I have a chance

from pyvista-support.

dennissergeev avatar dennissergeev commented on June 19, 2024

Thanks!

AFAIK it is possible in Paraview (though API is a bit convoluted), so I guess it is technically possible in pyvista too, since they both use VTK...

from pyvista-support.

banesullivan avatar banesullivan commented on June 19, 2024

That is actually news to me! I didn't think it was possible to use spherical coordinates in ParaView (never tried, really).

Could you share some more details on this? Maybe screenshots? Or weblinks/tutorals? If I can figure out how they do it in ParaView, then we should be able to do it in PyVista.

They dont have a spherical axes grid, do they?!

from pyvista-support.

dennissergeev avatar dennissergeev commented on June 19, 2024

I only tried to use it in the Paraview's GUI and to be honest didn't get far, but the option is available (see the "Spherical coordinates" tick box in the screenshot below)

Screenshot from 2019-08-22 17:50:23

Perhaps this package that uses Paraview python could be helpful: https://github.com/mjucker/pv_atmos/blob/master/grids.py#L367

as well as a tutorial from the same guy: https://youtu.be/ya-xXY5uzeo?t=332

from pyvista-support.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.