+ Reply to Thread
Results 1 to 10 of 10

Thread: physics libraries in rhino python

  1. #1

    physics libraries in rhino python

    Since Last weeks i'm exploring python in rhino. But I was wondering is it possible to make use of some physics libraries for python? i would like to make use of springs, particles etc.

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,472
    Blog Entries
    19
    This has been requested before and has been on my "todo" list for a while. Python in Rhino has full access to .NET libraries and that is probably your best bet at getting access to a decent physics engine. Search around for "C# physics" and if you find a library that looks good to try, let me know and I'll do what I can to help you work with it.

    Thanks,
    -Steve

  3. #3
    thnx! I was searching around for some while.... I found pyode but i'm not sure this is in .net (tried also scipy, but this is not exactly what i'm searching for) Can you tell me if pyode is working in rhino? Thanks, Lieneke

  4. #4
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,472
    Blog Entries
    19
    Hi Lieneke,
    PyOde is a python wrapper around the native ODE project which is going to be problematic in Rhino. I would recommend searching for "C# physics" and looking at those libraries.
    Thanks,
    -Steve

  5. #5
    thanks steve,
    It there maybe some ebook/tutorial/explaination about the .net framework and how this works with libraries. (i'm new to all this stuff ) I don't get how i can acces c# libraries with python. For me they are two different languages where you have to acces functions on a different way. (maybe just the command to get acces to the class is the same?!?!?!)

  6. #6
    Hi Steve, lienekevanhoek,

    I tried to import unsuccessfully pyode as well...

    ...later i found this post ... i've searched for physics libraries with a c# wrapper and found bullet ----> http://code.google.com/p/bullet/
    this is the c sharp wrapper folder ---> http://code.google.com/p/bullet/sour...rapper/?r=1647

    @steve do you think this will work , and in case could you give us a little suggestion starting point template or example to show us how to acces the functions?

    Many thanks
    Riccardo

  7. #7
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,472
    Blog Entries
    19
    Hi Riccardo,
    I would be happy to help get this project up and running, but I'm a little distracted at the moment while we are in a big push to get Rhino 5 released. Since this library is written in C++, you would need to compile the C++ library as well as the managed C++ wrappers. Once that is done, you should have DLLs that you can access from python. I can help with the access part, but I don't have the time at the present to do all of the compilation work.
    Thanks,
    -Steve

  8. #8
    Hi Steve,

    I'll try to do all the compilation part by myself and let you know how is going !
    Thanks
    Riccardo

  9. #9
    +1 for bullet!

  10. #10
    Hi Steve,

    I just realize that here: http://code.google.com/p/bulletsharp/downloads/list

    you can download binaries of generic version of bulletsharp for NET 2.0 and NET 4.0 some examples ...

    NET 2.0 http://code.google.com/p/bulletsharp...1.zip&can=2&q=http://code.google.com/p/bulletsharp...1.zip&can=2&q=

    NET 4.0 http://code.google.com/p/bulletsharp...1.zip&can=2&q=http://code.google.com/p/bulletsharp...1.zip&can=2&q=

    When I open them i get : BulletSharp.dll

    Let me know what you think !

    Thanks
    Riccardo

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts