From b3c2fcf3f899298b345982058e16af2db296b8de Mon Sep 17 00:00:00 2001 From: Irlan Date: Wed, 5 Jun 2019 08:59:58 -0300 Subject: [PATCH] Silence Triangle --- src/bounce/cloth/garment/garment_mesh.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bounce/cloth/garment/garment_mesh.cpp b/src/bounce/cloth/garment/garment_mesh.cpp index b42be19..394eab3 100644 --- a/src/bounce/cloth/garment/garment_mesh.cpp +++ b/src/bounce/cloth/garment/garment_mesh.cpp @@ -106,10 +106,11 @@ static void b3Set(b3SewingPatternMesh* mesh, float32 desiredArea, const b3Sewing mid.segmentmarkerlist = NULL; // Run triangulation + // Q - quiet // z - zero based indices // p - PSLG // c - preserve the convex hull - triangulate("zpc", &in, &mid, NULL); + triangulate("Qzpc", &in, &mid, NULL); // Refine @@ -131,11 +132,12 @@ static void b3Set(b3SewingPatternMesh* mesh, float32 desiredArea, const b3Sewing out.segmentmarkerlist = NULL; // Run triangulation + // Q - quiet // z - zero based indices // p - PSLG // c - preserve the convex hull // r - read triangles - triangulate("zpcra", &mid, &out, NULL); + triangulate("Qzpcra", &mid, &out, NULL); // The first vertices of the output structure must be the vertices of the input structure. for (int i = 0; i < in.numberofpoints; ++i)