Fast-Quadric-Mesh-Simplification icon indicating copy to clipboard operation
Fast-Quadric-Mesh-Simplification copied to clipboard

Question: It it possible for it to optimise hollow cylinder geometry without breaking it?

Open VegarRingdalAibel opened this issue 2 years ago • 5 comments

It it possible for it to optimise cylinder geometry without breaking it? Maybe this just isnt possible..

Tried this one with a stl file https://myminifactory.github.io/Fast-Quadric-Mesh-Simplification/

Was hoping it would be able to improve it without breaking it, but might need image

Added file I used on the web page stl file.zip

VegarRingdalAibel avatar Jun 24 '22 11:06 VegarRingdalAibel

Or maybe a option to make it skip geometry if its a shape if it will break it ?

VegarRingdalAibel avatar Jun 24 '22 11:06 VegarRingdalAibel

It it possible for it to check if geometry have 1 or more borders, and not destroy them, that might be a fix for this issue?

vegarringdal avatar Jun 25 '22 20:06 vegarringdal

Each triangle of your cylinder has a border edge. I wonder if a simple fix would be to change line 489 from

if(v0.border != v1.border)  continue;

to

if(v0.border || v1.border)  continue;

neurolabusc avatar Jun 25 '22 21:06 neurolabusc

It is worth noting that many mesh simplification routines assume a manifold surface.

neurolabusc avatar Jun 25 '22 21:06 neurolabusc

@neurolabusc

Would that change break anything else ? Not at a computer I can edit/test it out atm.

Was hoping this would work with geometry like this since it was working really nicely without breaking anything until I got to stuff with more than one border.

Btw, thanks taking the time to answer 👍

vegarringdal avatar Jun 25 '22 22:06 vegarringdal