Code Monkey home page Code Monkey logo

raysect_mayavi's People

Contributors

mateasek avatar mattngc avatar

Watchers

 avatar  avatar

Forkers

mateasek

raysect_mayavi's Issues

plot_kwargs in TriangularMeshSource

Sorry, I know this repo is experimental, but I don't understand the default plot_kwargs in the TriangularMeshSource. With transparent:True and opacity:0, I get a blank screen. If I hardcode (I don't seem to see how to set otherwise) to transparent:False and opacity:1, I actually get a gray triangulated mesh object. Am I doing something wrong?

Transform methods returning meshes to classes as it was done for lenses and cylinder

I would like to transform rest of the methods constructing geometric primitives and mesh primitive to classes as it was done for cylindrical primitives (lenses, cylinder). There are two reasons. Now there is different approach taken for primitives, which I think could be confusion and also ot will allow the plotting mechanism to be changed to better treat different "objects" as for example primitives and ray trajectories. Each class can hold metadata about its plot properties and can add itself to a figure using preferred plotting function.

Change _parse_nodes to improve recursing through a scenegraph

The _parse_nodes method now can't handle correctly any class inherited from the Node class and can't handle primitives being parents to other primitives, see the if statement. I think a better solution could be:

        if isinstance(child, Primitive):
            _parse_nodes(child, mesh_list)
            mesh_list.append((to_mesh(child), child.meta))
        elif isinstance(child, Observer):
            return
        elif isinstance(child, Node):
            _parse_nodes(child, mesh_list)

Also, I think it could be made a function returning a list of meshes instead of changing a list.

Visualisation in Pyvista/Panel

I've discovered Pyvista package, which is an alternative to Mayavi. The advantage could be it is nicely integrable with panel. Pyvista seems to be a nice way how to use the visualisation inside jupyter and more importantly also remotly. The integration with panel can offer the possibility to integrate the visualisation into panel dashboards.

@mattngc feel free to assign this to me, I have most of the work done.

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.