From 8623f28bb098fc666d5766f4e8f09c6be094d031 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 22 Oct 2025 10:32:00 +0100 Subject: [PATCH] Use internal::construct_normal_of_STL_face() --- Stream_support/include/CGAL/IO/STL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stream_support/include/CGAL/IO/STL.h b/Stream_support/include/CGAL/IO/STL.h index 1c7470e1598..3407d2bbefb 100644 --- a/Stream_support/include/CGAL/IO/STL.h +++ b/Stream_support/include/CGAL/IO/STL.h @@ -329,7 +329,7 @@ bool write_STL(std::ostream& os, decltype(auto) qq = conv(q); decltype(auto) rr = conv(r); - const Vector_3 nn = collinear(pp,qq,rr) ? Vector_3(static_cast(1),static_cast(0),static_cast(0)) : unit_normal(pp,qq,rr); + const Vector_3 nn = conv(internal::construct_normal_of_STL_face(p, q, r, k)); const float coords[12] = { nn.x(), nn.y(), nn.z(), pp.x(), pp.y(), pp.z(),