Hello,gile.Thank you for your post. Because I am not good at English, I didn't express my meanings clearly here.What I really want to do it to remove the points or lines according to some criterion. For example,remove all the points near my point.I will show it in my image. So,my code should be something like this:
Point3d myPt = new Point3d(X,Y,Z);
//to determine whether a same point exsit in th list or not.
bool exsitPt = PointsLst.Exsits(pt =>
{
if(|pt - myPt| <= range)
return true;
return false;
});
//if do exsit,find the point.
Point3d foundPt = PointsLst.Find(pt =>
{
if(|pt - myPt| <= range)
return true;
return false;
});
//then remove it
PointsLst.Remove(foundPt);
In this case. myPoint is not contained by my list. I have try this:
PointsLst.Remove(pt =>
{
if(|pt - myPt| <= range)
return true;
return false;
});
But it is wrong.I am not good at delegation or lambda.