- Ifc: code cleanup.

pull/17/head
Alexander Gessler 2013-02-09 16:59:03 +01:00
parent 7e78e141b2
commit 5a24a91ea1
1 changed files with 3 additions and 11 deletions

View File

@ -350,22 +350,14 @@ void ProcessPolygonalBoundedBooleanHalfSpaceDifference(const IfcPolygonalBounded
return; return;
} }
IfcMatrix4 mat; IfcMatrix4 proj_inv;
ConvertAxisPlacement(mat,hs->Position); ConvertAxisPlacement(proj_inv,hs->Position);
//profile->Transform(mat);
// and map everything into a plane coordinate space so all intersection // and map everything into a plane coordinate space so all intersection
// tests can be done in 2D space. // tests can be done in 2D space.
IfcMatrix4 proj = mat; IfcMatrix4 proj = proj_inv;
proj.Inverse(); 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 // clip the current contents of `meshout` against the plane we obtained from the second operand
const std::vector<IfcVector3>& in = first_operand.verts; const std::vector<IfcVector3>& in = first_operand.verts;
std::vector<IfcVector3>& outvert = result.verts; std::vector<IfcVector3>& outvert = result.verts;