Draft: Ștergere Punct

From FreeCAD Documentation
Jump to: navigation, search
This page is a translated version of the page Draft DelPoint and the translation is 22% complete.

Outdated translations are marked like this.
Other languages:
čeština • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română • ‎русский • ‎svenska • ‎Türkçe
Arrow-left.svg Previous: Draft AddPoint.svg Add point

Draft DelPoint.svg Draft DelPoint

Menu location
Draft → Remove Point
Workbenches
Draft, Arch
Default shortcut
Introduced in version
-
See also
Draft AddPoint

Descriere

Acest instrument vă permite să ștergeți puncte de la Wires și BSplines.

The counterpart to this tool is the Draft AddPoint operation.

Cum se folosește

  1. Selectați o wire sau o BSpline
  2. Apăsați tasta Draft DelPoint.png Draft DelPoint
  3. Clic un punct pe wire or BSpline

This functionality is also available from the Draft Edit.svg Draft Edit tool.

Opţiuni

  • Această funcție este disponibilă în instrumentul Draft Edit.png Draft Edit

Scrip-Programare

Scriptul nu este disponibil, dar este ușoară ștergerea de puncte la Wires and BSplines, de exemplu:

The 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.

Example:

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()
Arrow-left.svg Previous: Draft AddPoint.svg Add point