bgdev.tools.curve

Custom tools with curves.

author

Benoit GIELLY <benoit.gielly@gmail.com>

attach_nodes_to_curve()[source]

Attach selected nodes to selected curve.

curve_from_nodes(degree=2)[source]

Create a curve and snap each CVs on each selected nodes.

Parameters

degree (int) – The curve degree.

Returns

The created curve node.

Return type

str

get_closest_point(point, node_list)[source]

Get the closest point to each nodes in the list.

Parameters
  • point (str) – Node to evaluate the distance to.

  • node_list (list) – List of nodes to search for the closest to the point.

Returns

The closest node.

Return type

str