Mesh manipulation library Pymesh

Why I made

Currently I am implementing application which combines multiple tiny stl modules into one large stl data. I can use Blender API to manipulate these process but blender is too rich for this kind of data handling. So I made this pymesh for simple data handling (translate, rotate, scale, combine data, and so on). Pymesh uses numpy module for inner calculation so it works well from performance point of view.

Screen Shot 2015-10-15 at 21.25.55

Pymesh

Install

I’ve already registered pymesh to PyPI. So you can install pymesh via pip command.

Feature

Pymesh provides functions as follow:

  • Supported format
    • STL(Binary, ASCII)
    • OBJ(Wavefront, no material supported)
  • Transform
    • Translate
    • Rotate
    • Scale
  • Join
    • Combine multiple data into one data (NOT boolean union)
  • Analyse
    • Volume
  • Numpy is used for inner calculation so that it runs fast.

Sample Code

This is the sample code of pymesh. You can handle 3D data intuitively.

Pymesh also suppors method chain. So you can use method like this:

It’s so convenient, isn’t it?

Advanced

If you use tse (Text Stream Editor) with pymesh, you can user pymesh by one-liner style.

Any problem?

If you have any problem or any request, please send me issues or PR in github.