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. 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.13-cp39-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (487.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

meshpro-0.0.13-cp38-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (487.0 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

meshpro-0.0.13-cp37-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (485.5 kB view details)

Uploaded CPython 3.7 manylinux: glibc 2.17+ x86-64

File details

Details for the file meshpro-0.0.13-cp39-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meshpro-0.0.13-cp39-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f98763db4a4123ba09286cf202c36291df9f229719566d2f2468debc38fe0a17
MD5 8b1745ea0ed5731f917b990c4e87157b
BLAKE2b-256 b8fdd80f977d3a91e47bc2237e2678d4f14eab39412e7c5b41950531399e71df

See more details on using hashes here.

File details

Details for the file meshpro-0.0.13-cp38-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meshpro-0.0.13-cp38-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b5095fae82dc970aa1a1d491f63e2f61423ca132fbcc6e9e4e7937659e161aa
MD5 96f996ff77022bfc1cc0fff0e678ed60
BLAKE2b-256 13b061a9ff9969dcabccd8898811ee177ff3ec293344666aad6bfb727100dd98

See more details on using hashes here.

File details

Details for the file meshpro-0.0.13-cp37-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for meshpro-0.0.13-cp37-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 256caaecb15143cb0c61bcc582691e9b944e7d2812445fff0123d507df79fafd
MD5 43dcb2aed60304baa523d33d3f0dc3de
BLAKE2b-256 38a29eb2e3df1f64a57dd5c6b2d2d51c6e11cf228b5c7b72a5a9c26aac7e207c

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