Jump to content

Curves Discretize

From FreeCAD Documentation

Curves Discretize

Menu location
Curves → Discretize
Workbenches
Curves
Default shortcut
None
Introduced in version
-
See also
None

Description[edit | edit source]

The Curves Discretize tool discretizes an edge or a wire and therefore creates a set of points along the edge/wire according to a chosen discretization method.

Usage[edit | edit source]

  1. Select one or more edges in the 3D view.
  2. There are several ways to invoke the tool:
    • Press the Discretize button.
    • Select the Curves → Discretize option from the menu.
  3. A Discretized_Edge object is created for each selected edge.
  4. Optionally edit the values in the Property editor to choose a different discretization method and adjust the related properties (see Properties below).

Properties[edit | edit source]

See also: Property editor.

A Discretized_Edge object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data[edit | edit source]

Discretized

  • DataEdge (LinkSub): Input edge.
  • DataPoint (VectorList): Lists the output points.
  • DataTarget (Enumeration): Tool target.
    • SingleEdge (default): Discretizes the selected edge only.
    • Wire: Discretizes the whole wire the edge belongs to.

Method

  • DataAlgorithm (Enumeration): Discretization method.
    • Number (default): A number of points that are evenly distributed along the selected edge/wire.
    • QuasiNumber: ...
    • Distance: All points are placed at the same distance to their neighbors apart from the last pair.
    • Deflection: ...
    • QuasiDeflection: ...
    • Angular-Curvature: ...
  • DataAngular (Float): Angular value for Angular-Curvature Algorithm.
  • DataCurvature (Float): Curvature value for Angular-Curvature Algorithm.
  • DataDeflection (Float): Distance for deflection Algorithm.
  • DataDistance (Float): Distance between edge points.
  • DataMinimum (Integer): Minimum number of points.
  • DataNumber (Integer): Number of edge points.

Output

  • DataNormalized Parameters (FloatList): Normalized parameters list.

Parameters

  • DataParameter First (Float): Start parameter.
  • DataParameter Last (Float): End parameter.

Scripting[edit | edit source]