mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
#1153 add ray_distance to tree result
This commit is contained in:
@@ -46,6 +46,7 @@ namespace IfcGeom {
|
|||||||
IfcUtil::IfcBaseEntity* instance;
|
IfcUtil::IfcBaseEntity* instance;
|
||||||
std::array<double, 3> position;
|
std::array<double, 3> position;
|
||||||
std::array<double, 3> normal;
|
std::array<double, 3> normal;
|
||||||
|
double ray_distance;
|
||||||
double dot_product;
|
double dot_product;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -467,6 +468,7 @@ namespace IfcGeom {
|
|||||||
ordered.insert({ u, { u, sidx, c,
|
ordered.insert({ u, { u, sidx, c,
|
||||||
{P.X(), P.Y(), P.Z()},
|
{P.X(), P.Y(), P.Z()},
|
||||||
{V.X(), V.Y(), V.Z()},
|
{V.X(), V.Y(), V.Z()},
|
||||||
|
d.XYZ().Dot(p0.XYZ() - P.XYZ()),
|
||||||
V.Dot(d)
|
V.Dot(d)
|
||||||
} });
|
} });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user