From 04d4095ffe8ef32aab1dbfe1ba71f1265a8e3da2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 22 May 2015 13:13:48 +0000 Subject: [PATCH] Correctly mark face boundary edges in case of vertex welding --- src/ifcgeom/IfcGeomRepresentation.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcgeom/IfcGeomRepresentation.h b/src/ifcgeom/IfcGeomRepresentation.h index f2b1fc3ca7..cde87e15e2 100644 --- a/src/ifcgeom/IfcGeomRepresentation.h +++ b/src/ifcgeom/IfcGeomRepresentation.h @@ -228,9 +228,9 @@ namespace IfcGeom { _material_ids.push_back(surface_style_id); - addEdge(n1, n2, edgecount, edges_temp); - addEdge(n2, n3, edgecount, edges_temp); - addEdge(n3, n1, edgecount, edges_temp); + addEdge(dict[n1], dict[n2], edgecount, edges_temp); + addEdge(dict[n2], dict[n3], edgecount, edges_temp); + addEdge(dict[n3], dict[n1], edgecount, edges_temp); } for ( std::vector >::const_iterator it = edges_temp.begin(); it != edges_temp.end(); ++it ) { if (edgecount[*it] == 1) {