Meshline

class LRSplines.Meshline(start: float, stop: float, constant_value: float, axis: int, multiplicity: int = 1)[source]

Represents a meshline (knotline) in given direction with designated endpoints.

contains(other: LRSplines.meshline.Meshline) → bool[source]

Returns true if meshline is completely contained in this meshline.

Parameters:other – meshline to check if is contained
Returns:true if other is contained, false otherwise
midpoint

Returns the midpoint of the meshline.

Returns:midpoint of the mesh line.
number_of_knots_contained(basis: LRSplines.b_spline.BSpline) → int[source]

Returns the number of knots of given BSpline that lies on this meshline. :param basis: BSpline :return: number of knots of BSpline that lies on this meshline.

overlaps(other: LRSplines.meshline.Meshline) → bool[source]

Returns true if the two meshlines overlap.

Parameters:other – meshline to check for overlap
Returns:true if the meshlines overlap, false otherwise
set_multiplicity(knots) → None[source]

Sets the multiplicity of the mesh line according to how many knots in the knot vector overlaps with this constant value. :param knots: knot vector

splits_basis(basis: LRSplines.b_spline.BSpline) → bool[source]

Returns true whether this mesh line traverses the interior of the support of the given basis function. :param basis: basis function to check split against :return: true or false

splits_element(element: LRSplines.element.Element) → bool[source]

Returns true whether this meshline traverses the interior of given element. :param element: element to check split against :return: true or false