Welcome, Guest
Username: Password: Remember me

TOPIC: Face Normals Get Flipped When Collapsing Edges

Face Normals Get Flipped When Collapsing Edges 4 months 2 weeks ago #5581

At times when I collapse edges, surrounding faces get the normals flipped. Sometimes it's just the surrounding ones, sometimes half of the faces in the model (hundreds) get flipped. Before I collapse the edges all normals are correct and pointing outside. Is this normal and intended behaviour for DELFTship or am I doing something wrong?

Thank you for any hints.
The administrator has disabled public write access.

Face Normals Get Flipped When Collapsing Edges 4 months 2 days ago #5584

  • Icare
  • Icare's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 178
  • Thank you received: 28
  • Karma: 5
When you change something in a perfect model (punching a hole, collapsing polygons' edges...), the software can be puzzled between inner and outer surfaces.
When you click on the "CHECK MODEL" button, it will reconsider the whole model, find the leaking points and flip the surfaces when they look odd in its "eyes". When the volume is closed (when there's a deck and no leaking points),the operation works well. But when you have too many leaking points, too many "inside out" surfaces, an open volume (no deck), the software can give you strange results.
Generally, you just have to click on the "CHECK MODEL" button again, and then you'll get the expected result.

You can get many inside out flipped surfaces when you draw polygons one by one by selecting their corners. In the manual it's said you have to select the points clockwise or counter-clockwise (depending of the camera position: inboard or outboard). Just remember this when selecting the points! ;)

Mind you: I drew a Klein's bottle and the software could understand how to flip the surfaces! B)

The Klein's bottle is a mathematical curiosity: a non-orientable surface. With such a bottle, there's only one surface which is inner and outer at once. (Wiki link: en.wikipedia.org/wiki/Klein_bottle). It's a little like the Moebius' strip (Wiki link: en.wikipedia.org/wiki/M%C3%B6bius_strip) applied to the volumes...
The administrator has disabled public write access.
The following user(s) said Thank You: HomoSapiensNavalis

Face Normals Get Flipped When Collapsing Edges 3 months 2 weeks ago #5600

Thank you Icare and sorry for the late response.

My model is completely enclosed (decked). If the normals point all to the water and I execute the <check model> command, the normals will get messed up. I'm not sure whether it has something to do with my model being a stabilized monohull and there are some limitations for that in the software. What puzzles me though, is that when I collapse edges to simplify/edit the model, the flipping of normals is not limited to surrounding surfaces. That wouldn't be a big deal. Instead great portions of the model get flipped and reversing hundreds of them back again is very time consuming. It's like if the <check model> command would be executed automatically, which in my case is something I don't want becuase it messes up the normals. I'm just wondering if this is intended behaviour.

About your point: When I insert new faces, I usually can't always predict in which direction I have to select the corner points in order to get the desired face normal. But that's no big deal, because I check and correct the new faces right after creating them and they are usually not so many. The sudden change of many already existing and well-oriented faces when collapsing an edge is what worries me.

I made it a habit to check the model by setting the draft in the project settings so high that the whole model gets submerged. By assigning the underwater volume a unique color, I can visually check whether all surface normals are correct, even those above the waterline. This tells me if the calculated displacement volume and other hydrostatic properties are trustworthy. Unfortuntely, not always when a surface has the wrong orientation, the displacement will amount to zero. It can indeed happen that the calculations will just be off slightly, (e.g. being a few cubic meters short) depending on size and location of the ill-oriented face(s). Without means to counter-check the displacement volume, one might be relying on wrong hydrostatic properties without noticing it, due to an only marginal difference. That's why after I do major edits, I check the model like this just to be sure that all normals are pointing to the water/outwards.

Interesting about the bottle, I forgot about that one. I'm sure that in most cases, DS will orient the faces correctly.
The administrator has disabled public write access.

Face Normals Get Flipped When Collapsing Edges 3 months 2 weeks ago #5603

  • marven
  • marven's Avatar
  • OFFLINE
  • Administrator
  • Posts: 546
  • Thank you received: 65
  • Karma: 23
In most cases when the software orients the normals incorrectly this is caused by incorrect geometry. For example there could be edges in your model with more than 2 faces connected to it (in which case the edges turn either purple or green), or even a double face (2 faces using the same points).
If this is not the case please send us your model so we can have a look at it, as perhaps we might need to improve the algorithm which checks for the orientation of face normals.
The administrator has disabled public write access.
The following user(s) said Thank You: HomoSapiensNavalis

Face Normals Get Flipped When Collapsing Edges 3 months 12 hours ago #5613

Thank you marven for your answer! As a matter of fact, my model indeed has an area where there are four faces attached to the same edge, see attached sketch of transverse section. Although I understand why that might be an "incorrect" geometry for DELFTship, shipbuilding-wise this is a perfectly legal configuration. Do you think this could be the cause? Thanks.
Attachments:
The administrator has disabled public write access.
Time to create page: 0.103 seconds
Powered by Kunena Forum