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.15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

meshpro-0.0.15-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (867.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

meshpro-0.0.15-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (406.7 kB view details)

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

File details

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

File metadata

File hashes

Hashes for meshpro-0.0.15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5686b399a693edbed2fdc8e2c1d39ad6b361abd11b61cf2f9e2f6488b3823f8
MD5 6f9a587f0b8f923ee0fb30d05629c3ef
BLAKE2b-256 d3af95342574d5fe1ebbf745be0b2e7fe19fc558eacb700c7c411a5266b23cd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meshpro-0.0.15-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e610c78ccf47fc7d5f10b609066ac3257bf8083efb66072d9fdc7428197363ba
MD5 b23e358b4345dbdca66aa71f3a9d2561
BLAKE2b-256 f9e977e237339b60e0653e723f5d6ebc48477374ef92e1e754676de698a04ec5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meshpro-0.0.15-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 702a7feb4a8d68d7af1e5a1412045a8a4dc6b63e56ce37b71b410bb9ce391264
MD5 1c0d02c3d2592c13bec42d80f1b20dd8
BLAKE2b-256 05c2a93bc9d7e92823c713cde8d65620b6dddc682da6ae5efb96cef12b5e5358

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