From 5a24a91ea1edbeb53535ec32f92894d347cf4712 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Sat, 9 Feb 2013 16:59:03 +0100 Subject: [PATCH] - Ifc: code cleanup. --- code/IfcBoolean.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/code/IfcBoolean.cpp b/code/IfcBoolean.cpp index 7de5c7c14..1b3f8b75d 100644 --- a/code/IfcBoolean.cpp +++ b/code/IfcBoolean.cpp @@ -350,22 +350,14 @@ void ProcessPolygonalBoundedBooleanHalfSpaceDifference(const IfcPolygonalBounded return; } - IfcMatrix4 mat; - ConvertAxisPlacement(mat,hs->Position); - //profile->Transform(mat); - + IfcMatrix4 proj_inv; + ConvertAxisPlacement(proj_inv,hs->Position); // and map everything into a plane coordinate space so all intersection // tests can be done in 2D space. - IfcMatrix4 proj = mat; + IfcMatrix4 proj = proj_inv; proj.Inverse(); - - //profile->Transform(proj); - //proj = - - const IfcMatrix4 proj_inv = IfcMatrix4(proj).Inverse(); - // clip the current contents of `meshout` against the plane we obtained from the second operand const std::vector& in = first_operand.verts; std::vector& outvert = result.verts;