70002329 RemoveInLinePoints of gPoints is not working properly

Article 70002329
Type Bug
Product Engine
Version 1002
Date Added 3/23/2023
Fixed 10.1004.0.1 (3/24/2023)
Submitted by Alessio Francioso

Summary

RemoveInLinePoints of gPoints is not working properly The following code removes almost all the points on the collection. Globals.DefaultPointEquality = Globals.VD_ZERO3; Globals.DefaultLinearEquality = Globals.VD_ZERO3; gPoints pts; vdPolyline pline; pts = new gPoints(); pts.Add(14.75, 4.75, 0); pts.Add(14.75, 4.751, 0); pts.Add(10.25, 4.751, 0); pts.Add(10.25, 4.75, 0); pts.Add(10.249, 4.75, 0); pts.Add(10.249, 0.25, 0); pts.Add(10.25, 0.25, 0); pts.Add(14.75, 0.25, 0); pts.Add(14.75, 4.75, 0); pline = new vdPolyline(doc, pts); doc.Model.Entities.Add(pline); //gPoints pts2 = pts.GetOutlineBoundary(); pts.RemoveInLinePoints(); pline = new vdPolyline(doc, pts); doc.Model.Entities.Add(pline);

Solution

Fixed in version 1004.0.1

We also added the following ovveride for users that want to use this method with a specified equality.
public int RemoveInLinePoints(double equality)

Send comments on this topic.