Commit d4dd999b authored by oscar's avatar oscar

修改错误

parent 1c68b94b
......@@ -100,16 +100,15 @@ bool IsPointInPolygon(const std::vector<std::vector<double>>& poly, const Point&
bool HdLib::GetIsInCross(const Point& ptPoint)
{
std::vector<const HdLink*> vcthlLinkNearby = {};
if (false == GetDataNearby(ptInLoc, 10.0f, 10.0f, vcthlLinkNearby))
if (false == GetDataNearby(ptPoint, 10.0f, 10.0f, vcthlLinkNearby))
{
return false;
}
isInCross = 0;
for (int i = 0; i < vcthlLinkNearby.size(); i++)
{
if (vcthlLinkNearby[i])
{
for (int j = 0; j < vcthlLinkNearby[i]->vctcrCrossing; j++)
for (int j = 0; j < vcthlLinkNearby[i]->vctcrCrossing.size(); j++)
{
if (IsPointInPolygon(vcthlLinkNearby[i]->vctcrCrossing[j].vctvdGeoArea, ptPoint))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment