knotvector_to_knots_and_mults
- compas.geometry.knotvector_to_knots_and_mults(knotvector)[source]
- Convert a knot vector to a list of knots and multiplicities. - Parameters:
- knotvectorlist[int | float]
- Knot vector. 
 
- Returns:
- tuple[list[int | float], list[int]]
- Knots and multiplicities. 
 
 - See also - Notes - The “standard” representation of a knot vector is a list of the form - [0] * (degree + 1) + [i / d for i in range(1, d)] + [1] * (degree + 1), with- d = pointcount - degree. This representation is used, for example, in the NURBS Book and OpenCASCADe.- Rhino uses a knot vector of the form - [0] * (degree) + [i / d for i in range(1, d)] + [1] * (degree).