mmSolver.tools.subdivideline#

Tool#

Subdivide the number of markers in selected line.

This allows adding more detail in areas that are needed without adding line segments where they are not needed.

The tool works on the current Marker or Line selection. If a line is selected the line is uniformly subdivided. If markers are selected, the line segments around the markers are subdivided.

mmSolver.tools.subdivideline.tool.main()#

Subdivide the selected line (or line connected to selected markers).

Library#

Functions for sub-dividing a line with more markers.

mmSolver.tools.subdivideline.lib.subdivide_line(line, mkr_list)#

Subdivides the line, with the given marker list.

The line segments between each marker in ‘mkr_list’ will be subdivided.

Parameters:
  • line (mmapi.Line) – The line to subdivide.

  • mkr_list ([mmapi.Marker, ..]) – List of marker to subdivide between. Each pair of markers represents a ‘line segment’ that will have a new Marker added.

Return type:

([mmapi.Marker, ..], [mmapi.Marker, ..])

Returns:

Two lists of markers, first list is all the markers that are part of the new line, and the second list are the newly created markers.