@marceloarguello700 wrote:
Hi, I have a set of (x y), points that extract tracing from a photo.
Have more than 200 points that define a edge profile, it have some hand errors.So I want to regenerate the geometry, without imperfections and with smoth continuity.
The regenerated geometry will be used in a CNC machine.The idea is get the minimal set of point to generate the same curve with a minimal seted gap.
The point are readed from txt in python and loaded in a NurbsCurve.
points = Loadfile(profile.txt); NCpCrv1 = rhino.Geometry.NurbsCurve.CreateControlPointCurve(points,3); scriptcontext.doc.Objects.AddCurve(NCpCrv1);
The picture show:
Curve in red the readed point, with many control points.
Curve in black is that I wanted, but is hand drawed.
So there is any script, math o algorithm to regenerate the curve ?
I need some python o C# code to calculate the minimal set of point.
Greetings
Posts: 3
Participants: 2