Comments (8)
Hello Fabio!
Can you please attach full script that you run, and what error is printed when it crashes.
Anyway there are some issues with the code you send:
- params.voxelSize should be greather then zero (as far as voxel is kind of 3d pixel, zero size requers infinite resolution of voxels grid, so it have to be greather)
- shell mode requeres positive offset value that is at least half of voxel size
from meshlib.
Thanks, Grantim!
The script is very long, what I put here is sufficient to reproduce the problem. I don't have an error, I see the RAM be greater till the complete saturation of the RAM, blocking the VM
I've put a positive offset of 2 and voxelSize to 0.16 and it works.
Do you suggest 4 as Voxel size?
is possible that 4 means a coarse result?
Thanks a lot!
Fabio
from meshlib.
Glad that worked!
Voxel size should depend of object size
some exapmles of shell with different voxel size:
Voxel size 0.05, offset 0.15
less voxel size means better quality but takes more resources, if you need offset 2 i would suggest 0.1 voxel size. (Offset 2 is 10 times bigger than the mesh, so most likely it would look like sphere)
from meshlib.
thanks a lot for your time and your consideration.
Yes, in the end, it shall be similar to a sphere.
This is a small part of a bigger mesh made of parts with different offsets.
If I want at the end a thickness of 2 I have to put an offset of 1, isn't it?
As you are so kind, I have also a pair of questions about boolean operations.
They take a lot of resources, there is a way to limit it?
I have seen that all the resources are not freed at the end of the elaboration, there is something to release?
Thanks
Fabio
from meshlib.
In this case offset value is close to radius, so if you mean diameter by thickness
you need offset value 1.
About boolean, we have to different implementations, one voxel boolean, that need amount of resouces based on voxel size, and also we have mesh-based boolean (it can produce an error if input meshses has self-intersections) that take less resources.
from meshlib import mrmeshpy as mm
help(mm.boolean) # mesh-based
help(mm.voxelBooleanSubtract)
help(mm.voxelBooleanUnite)
help(mm.voxelBooleanIntersect)
both methods do not require manual releasing, so I think it may be a bug, could you please provide small example so we can investigate it?
from meshlib.
Hi,
thanks again, I've tried boolean voxel functions seem more stable in terms of memory (but slower).
Regarding the memory leek, When I've some minutes I try to provide you with an example, perhaps in a new issue.
from meshlib.
Thanks!
from meshlib.
Closing for now, if you will have any other issues please feel free to contact us!
from meshlib.
Related Issues (20)
- line self-intersection HOT 2
- Local setup HOT 5
- Error while showing numpad keys in F1 menu
- Negative offsetting in offsetMesh HOT 1
- Negative offset in thickenMesh results in incorrect filling of mesh HOT 3
- Readme installation steps are incorrect for Linux HOT 4
- Installation on Linux when sudo privileges are not available HOT 1
- Python Meshlib DistanceMap Interpolation Issue HOT 2
- meshlib.mrmeshpy.uniteCloseVertices does not exist in Python HOT 4
- Plane cut HOT 2
- Minkowski Sum in python HOT 2
- Problems in refine in cylinder mesh HOT 1
- add possibility to support rectangular planes
- setup z scale as ( ScaleX + ScaleY ) / 2 for plane feature HOT 1
- Creating grid meshes based on arbitrary shape input HOT 29
- Create a 3D Mesh from a list of vertices and faces. HOT 3
- Hole & Boundary edge length in Python HOT 5
- The Angle between two vectors is 0 to pi, why not 0-2pi HOT 4
- ImportError: libpython3.11.so.1.0: cannot open shared object file: No such file or directory HOT 1
- Are there any examples of emscripten for reference? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meshlib.