From 35b21da1d1c2fb90209649eec72b692a40c4b2f3 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Fri, 14 Apr 2023 00:39:00 +0200 Subject: [PATCH] yet another type typo --- vcg/simplex/face/topology.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/face/topology.h b/vcg/simplex/face/topology.h index 0cdba1963..732284445 100644 --- a/vcg/simplex/face/topology.h +++ b/vcg/simplex/face/topology.h @@ -824,13 +824,18 @@ void FlipEdgeNotManifold(FaceType &f, const int z) FaceType* ftmp = &f; if (gp1 != g) - FFAttach(ftmp, z, gp1, gi1); + FFAttach(f, z, *gp1, gi1); if (fp1 != &f) - FFAttach(g, w, fp1, fi1); + FFAttach(*g, w, *fp1, fi1); FFAttachManifold(ftmp, (z+1)%3, g, (w+1)%3); } +/*! +* Given a face it splits into three face with a mid vertex +* No allocation is done here, a new vertex and two new faces are needed +*/ + template void TriSplit(FaceType *fToSplit, FaceType *newf0, FaceType *newf1, typename FaceType::VertexType *newVert) {