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. |
1 reply
|
I only need to judge if a line intersects the Paths,Is there high efficiency function to instead of using solutionOpen.size()? |
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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?
All reactions