Errors with making regular-faced polyhedron
Posted: Sat Mar 06, 2021 8:47 pm
Hi there,
I would like to report two issues:
- an internal error "ConnectEdges(): Could not find mNeigh for edge 19-1." when loading an OFF file
- an error "Could not make faces regular" when trying to make faces regular
Let me explain how I got that.
I usually start by playing with my Supermag set (a variant from Geomag).
Once I have found a good (supposedly) regular-faced model, I make the corresponding polyhedron using a mesh editor like Blender and I export it to the OFF format.
This version is a rough 3D model of the real model but the topology of the faces is the same. Only the positions of the vertices are not accurate.
Then, I want to use Stella to make the faces regular since I use Supermag rods with the same length.
So I open the off file with Stella. It works most of the time but on rare occasions, I get the ConnectEdges() error message and Stella stops responding.
I guess this is a problem with modeling with Blender. I have tried making the same model from scratch differently 2 times without success.
It is probably a matter on my side but I cannot figure out what it is. It opens fine with Meshlab and Blender.
When the model opens nicely, I use the menu "Poly" -> "Try to make faces regular" on it.
Most of the time, this works and I get a working model where all edges are 1.
Sometimes, it works but I get a near miss since all edges are not of length 1.
In this case, either the model did not have regular faces to begin with or
the algorithm could have iterated to converge more but did not do it for some reason.
In rare cases, I get a message "Could not make faces regular".
I cannot understand what I do differently in these failing cases from the working ones.
Is it related to the polyhedron shape like having co-planar faces ?
What is the algorithm behind this feature ?
On the failing cases, I have tried the Spring model feature but I get the "The polyhedron you want to create does not appear to be valid." error sometimes.
It is quite self explanatory but I don't get why.
The spring model is not reliable, half of the time it outputs garbage.
I hope you may have an educated guess to solutions about my issues.
I would like to report two issues:
- an internal error "ConnectEdges(): Could not find mNeigh for edge 19-1." when loading an OFF file
- an error "Could not make faces regular" when trying to make faces regular
Let me explain how I got that.
I usually start by playing with my Supermag set (a variant from Geomag).
Once I have found a good (supposedly) regular-faced model, I make the corresponding polyhedron using a mesh editor like Blender and I export it to the OFF format.
This version is a rough 3D model of the real model but the topology of the faces is the same. Only the positions of the vertices are not accurate.
Then, I want to use Stella to make the faces regular since I use Supermag rods with the same length.
So I open the off file with Stella. It works most of the time but on rare occasions, I get the ConnectEdges() error message and Stella stops responding.
I guess this is a problem with modeling with Blender. I have tried making the same model from scratch differently 2 times without success.
It is probably a matter on my side but I cannot figure out what it is. It opens fine with Meshlab and Blender.
When the model opens nicely, I use the menu "Poly" -> "Try to make faces regular" on it.
Most of the time, this works and I get a working model where all edges are 1.
Sometimes, it works but I get a near miss since all edges are not of length 1.
In this case, either the model did not have regular faces to begin with or
the algorithm could have iterated to converge more but did not do it for some reason.
In rare cases, I get a message "Could not make faces regular".
I cannot understand what I do differently in these failing cases from the working ones.
Is it related to the polyhedron shape like having co-planar faces ?
What is the algorithm behind this feature ?
On the failing cases, I have tried the Spring model feature but I get the "The polyhedron you want to create does not appear to be valid." error sometimes.
It is quite self explanatory but I don't get why.
The spring model is not reliable, half of the time it outputs garbage.
I hope you may have an educated guess to solutions about my issues.