Fixed a Bug for Curved Geometry

There was a bug for surfaces that had 3 sides but with curved edges.
This has been fixed.