mgear.core.curve

NurbsCurve creation functions

Functions

addCnsCurve(parent, name, centers[, degree]) Create a curve attached to given centers.
addCurve(parent, name, points[, close, …]) Create a NurbsCurve with a single subcurve.
collect_curve_data(objs[, rplStr]) Generate a dictionary descriving the curve data
collect_curve_shapes(crv[, rplStr]) Collect curve shapes data
collect_selected_curve_data([objs]) Generate a dictionary descriving the curve data from selected objs
createCurveFromCurve(srcCrv, name, nbPoints) Create a curve from a curve
createCurveFromOrderedEdges(edgeLoop, …[, …]) Create a curve for a edgeloop ordering the list from starting vertex
createCuveFromEdges(edgeList, name[, …]) Create curve from a edge list.
create_curve_from_data(data[, replaceShape, …]) Build the curves from a given curve data dict
create_curve_from_data_by_name(crv, data[, …]) Build one curve from a given curve data dict
crv_parenting(data, crv[, rplStr, model]) Parent the new created curves
export_curve([filePath, objs]) Export the curve data to a json file
findLenghtFromParam(crv, param) Find lengtht from a curve parameter
getCurveParamAtPosition(crv, position) Get curve parameter from a position
get_color(node) Get the color from shape node
import_curve([filePath, replaceShape, …])
set_color(node, color) Set the color in the Icons.
update_curve_from_data(data[, rplStr]) update the curves from a given curve data dict
update_curve_from_file([filePath, rplStr])