Skip to content

Offset Mesh run times and CPU usage #5528

@patman52

Description

@patman52

I have been using the generalOffsetMesh method to repair and heal meshes to prep for our 3D printer. It has worked very well is is very fast. I have a computer with a 64 core CPU and it would generally use 100% of the CPU cores to quickly rebuild large mesh files.

I recently had to re do my Python environment and now when I run the same script with the same version of Python and meshlib, I am running into issues with very long repair times.

It will generally start using 100% of the CPU cores, but this % gradually decreases over time. This has lead to a repair time which typically would take a couple of minutes on a large file to take hours and hours.

I have checked the CPU for thermal throttling and have not witnessed anything.

This is the code, I give it a mesh file and a voxel size to run with:
oParams = mm.GeneralOffsetParameters() oParams.signDetectionMode = mm.SignDetectionMode.HoleWindingRule oParams.voxelSize = voxelSize resMesh = mm.generalOffsetMesh(mold_mesh, 0.0, oParams)

The CPU I am using is a Ryzen Threadripper and I have 256 GB of RAM.

I am using meshlib version 2.4.2.198.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions