Replies: 2 comments 10 replies
-
The Clip is not changed in each loop,only the subject is changed, if there is function to remove subject, maybe can increase efficiency. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I only need to judge if a line intersects the Paths,Is there high efficiency function to instead of using solutionOpen.size()? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a line collection(contains many line) and a PathsD(with some polylines),
I need to pick out the the lines that intersects the PathD:
int nLen = m_pPts->size();
double dPtX, dPtY;
for (int i = 0; i < nLen; i++)
{
dPtX = m_pPts->at(i).x;
dPtY = m_pPts->at(i).y;
PathD lineClip;
lineClip.push_back(PointD(centerX, centerY));
lineClip.push_back(PointD(dPtX, dPtY));
It runs very inefficiently, What is the right way?
Beta Was this translation helpful? Give feedback.
All reactions