IFC: Don't store temporary values by reference
This is not legal in any way and should never have worked.pull/635/head
parent
2a432f9adc
commit
4540250116
|
@ -1227,7 +1227,7 @@ bool GenerateOpenings(std::vector<TempOpening>& openings,
|
||||||
|
|
||||||
bool side_flag = true;
|
bool side_flag = true;
|
||||||
if (!is_2d_source) {
|
if (!is_2d_source) {
|
||||||
const IfcVector3& face_nor = ((profile_verts[vi_total+2] - profile_verts[vi_total]) ^
|
const IfcVector3 face_nor = ((profile_verts[vi_total+2] - profile_verts[vi_total]) ^
|
||||||
(profile_verts[vi_total+1] - profile_verts[vi_total])).Normalize();
|
(profile_verts[vi_total+1] - profile_verts[vi_total])).Normalize();
|
||||||
|
|
||||||
const IfcFloat abs_dot_face_nor = std::abs(nor * face_nor);
|
const IfcFloat abs_dot_face_nor = std::abs(nor * face_nor);
|
||||||
|
@ -1692,7 +1692,7 @@ bool TryAddOpenings_Poly2Tri(const std::vector<TempOpening>& openings,const std:
|
||||||
BOOST_FOREACH(p2t::Triangle* tri, tris) {
|
BOOST_FOREACH(p2t::Triangle* tri, tris) {
|
||||||
for(int i = 0; i < 3; ++i) {
|
for(int i = 0; i < 3; ++i) {
|
||||||
|
|
||||||
const IfcVector2& v = IfcVector2(
|
const IfcVector2 v = IfcVector2(
|
||||||
static_cast<IfcFloat>( tri->GetPoint(i)->x ),
|
static_cast<IfcFloat>( tri->GetPoint(i)->x ),
|
||||||
static_cast<IfcFloat>( tri->GetPoint(i)->y )
|
static_cast<IfcFloat>( tri->GetPoint(i)->y )
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue