|Draft -> Remove Point|
|Introducerad i version|
The counterpart to this tool is theoperation.
- Select a Draft Wire or a Draft BSpline. Note: the tool is disabled if no object is selected.
- Press the button.
- Click a point on the object.
- Press or the button to finish the operation; points already deleted will be gone.
This functionality is also available from thetool.
The options of this tool are described in.
There is no programming interface available for the DelPoint tool, however, removing points is simple.
Points attribute of a wire or spline is a list with the points that comprise that object; to remove points, overwrite this attribute with a shorter list of points. You can use methods like
pop() to remove an element in the desired position in the list. Each point is defined by its
FreeCAD.Vector, with units in millimeters.
import FreeCAD, Draft p1 = FreeCAD.Vector(-1000, 400, 0) p2 = FreeCAD.Vector(1500, -1500, 0) p3 = FreeCAD.Vector(2200, 1000, 0) wire = Draft.makeWire([p1, p2, p3]) points = wire.Points points.pop(1) wire.Points = points FreeCAD.ActiveDocument.recompute()