Skip to content

Face.coplanar_with? is not accurate #1100

@Fredosixx

Description

@Fredosixx

As of SU2025, there is a method to check if 2 adjacent faces are coplanar: Face#coplanar_with?.

I found that in many occasions, this method is not reliable and anyway not more reliable than the previous workarounds:

  • test if the scalar product of normals is > 0.9999999991 (know as thomthom magic value)
  • check if the face planes are identical

Here is a short video illustrating a real case. The faces are not particularly tiny (2.5 cm x 3.5cm).

Face#coplanar_with? return true whereas:

  • the scalar product of normals is only 0.9999987255726032
  • the face planes are different
  • the faces are actually NOT coplanar in the model. Deleting the common edge does erase the faces

I attach the video and the model

Bug.Face.coplanar.with.mp4

Face_coplanar_with.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions