示例#1
0
        private bool ListContainsPoint(IList <XYZ> targetListOfPoints, XYZ targetPoint)
        {
            foreach (XYZ currentPoint in targetListOfPoints)
            {
                if (currentPoint.FlattenZ().IsAlmostEqualTo(targetPoint.FlattenZ(), pointMinDistance))
                {
                    return(true);
                }
            }

            return(false);
        }