Skip to main content

Mesh tools for professionals

Project description

meshpro

Mesh tools for professionals.

MeshPro is a Python library and command-line tool for mesh I/O and mesh manipulation.

It supports all mesh formats supported by meshio.

Install MeshPro with

pip install meshpro

and retrieve a license key.

The full API documentation is here.

You can then use the command-line tool

meshpro convert    input.msh output.vtk   # convert between two formats

meshpro info       input.xdmf             # show some info about the mesh

meshpro compress   input.vtu              # compress the mesh file
meshpro decompress input.vtu              # decompress the mesh file

meshpro binary     input.msh              # convert to binary format
meshpro ascii      input.msh              # convert to ASCII format

or use MeshPro in Python with

import meshpro

MeshPro features

MeshPro meshes work exactly like meshio meshes, and they have a few extras:

import meshpro


# create mesh
mesh = meshpro.Mesh(
    [[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]],
    [("triangle", [[0, 1, 2], [0, 2, 3]])],
)

# or read it in
# mesh = meshpro.read("mesh.vtk")

# remove duplicate points and take care of the indexing
mesh.deduplicate_points(tol=1.0e-10)

# remove all points which aren't referenced in any cell
mesh.remove_orphaned_points()

# remove a number of points or cells
# mesh.remove_points(mask)
# mesh.remove_cells(mask)

# add boundary cells
mesh.add_boundary_cells()

# add outer normals as cell data
mesh.add_outer_normals()

Other mesh manipulation tools are these:

import meshpro

# extract boudnary mesh
boundary_mesh = boundary_meshmeshpro.extract_boundary_mesh(mesh)

# merge some meshes
mesh = meshpro.merge_meshes([mesh1, mesh2, mesh3])

submesh = meshpro.extract_submesh(mesh, point_mask, cell_mask)

submeshes = meshpro.split_cell_sets(mesh, store_orig_node_ids_as="gid")

License

MeshPro is a commercial product. You need to acquire a license to use it. Trial licenses are available.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

meshpro-0.0.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

meshpro-0.0.18-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

meshpro-0.0.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

meshpro-0.0.18-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (469.9 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file meshpro-0.0.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: meshpro-0.0.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for meshpro-0.0.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74b9e94a815afaaac07036fb1fea9f0abb4fb44240a7fe47a575d4ec544b75e4
MD5 16665875f77b3617b4b60a2f0086bca5
BLAKE2b-256 e38d89b04207875a6c88a3d746c8508e226b98c5802c9b591d002e1451802532

See more details on using hashes here.

File details

Details for the file meshpro-0.0.18-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: meshpro-0.0.18-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for meshpro-0.0.18-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d2312820db117aa53e94aaecd0e0ebd0dc5b9c2b9cff5af1337e5404878bd0a
MD5 3915b5bed8293f71234fca0c5d5f807f
BLAKE2b-256 eb98c32937010239ffc130c8c998fca7b17d0cf5c10cfa4a8ab316bb98f28d7b

See more details on using hashes here.

File details

Details for the file meshpro-0.0.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: meshpro-0.0.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for meshpro-0.0.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c02f8e8bfeb32dea7bfd81da358a80bb23ea09a01833daea0d7b5b9d6b7a967c
MD5 a8b71365510abc7b7e919748b28e2fe9
BLAKE2b-256 b68b023544c3227fd0f8df3f675f2a85c20d5510655ad0610a90385146be481b

See more details on using hashes here.

File details

Details for the file meshpro-0.0.18-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: meshpro-0.0.18-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 469.9 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for meshpro-0.0.18-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e6b96502cf8ac38aa379c2978ab4e8b8e2b1ccf5ff05848a503f77080ae2daf
MD5 2b4427530c425a6d73087eadc959b4f7
BLAKE2b-256 fb5db4273cafdd06c75e5855d7c14bb0689b80876f61f56c0b557e5b8b7f7d80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page