Bad edges in polygins
1902 9 1- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
I am importing some geometry from an obj file, and it is full of small issues that are making geometric processing difficult.
One thing I am struggling with is thin edges, where the edge returns on itself, as in the image.
Is there a good automated way to fix these edges?
In this case, 89 is a bad point and should be deleted.
I have tried polydoctor but could not figure out the right settings.
One thing I am struggling with is thin edges, where the edge returns on itself, as in the image.
Is there a good automated way to fix these edges?
In this case, 89 is a bad point and should be deleted.
I have tried polydoctor but could not figure out the right settings.
Patrick
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
best if u could upload the problematic geometry, so ppl don't waste time in solutions that would not work.
The only thing I can think of is checking how many neighbors (neighbourcount vex function) for each point. IF < 2 delete point (pt 89 has only 1 connected neighbor)
But that would not work with an open curve. And again, we don't know what kind of geo you have so it's a little bit a shot in the dark.
Cheers!
The only thing I can think of is checking how many neighbors (neighbourcount vex function) for each point. IF < 2 delete point (pt 89 has only 1 connected neighbor)
But that would not work with an open curve. And again, we don't know what kind of geo you have so it's a little bit a shot in the dark.
Cheers!
- anon_user_40689665
- Member
- 648 posts
- Joined: July 2005
- Offline
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
I took for granted that your surface is flat: this solution using using VDB might work with the 1 million polys geo, but probably is not super-efficient/fast.
Anyway it worked with the simple geo you provided, check the attached file.
I would be curios to know better ways to fix it, I tried some wrangling and some boolean without much success.
cheers
Anyway it worked with the simple geo you provided, check the attached file.
I would be curios to know better ways to fix it, I tried some wrangling and some boolean without much success.
cheers
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
I think I was using @elemnum in the wrong way in that last solution. When I used it with the big obj file, it cause problems. Here is the fixed version. Now it works fine.
Seems to run very fast, for 877K polygons took less than a second. (It says Last Cook 0.35 ms, but I am not sure if this is the actual execution time.)
Seems to run very fast, for 877K polygons took less than a second. (It says Last Cook 0.35 ms, but I am not sure if this is the actual execution time.)
Patrick
- Andr
- Member
- 900 posts
- Joined: Feb. 2016
- Offline
-
- Quick Links