releso.spline.SplineSpaceDimension

class releso.spline.SplineSpaceDimension(*, save_location: Path, logger_name: str | None = None, name: str, number_of_points: ConstrainedIntValue, degree: ConstrainedIntValue, knot_vector: List[float] | None = None)

Bases: BaseModel

Defines a single spline space dimension of the current spline.

The dimension is a dimension of the parametric spline dimension.

__init__(**data: Any) None

Constructor for the ReLeSO basemodel object.

Methods

convert_to_pathlib_add_datetime(v)

Add timestamp to save_location, of applicable.

get_knot_vector()

Function returns the Knot vector given in the object.

get_logger()

Gets the currently defined environment logger.

set_logger_name_recursively(logger_name)

Set the logger_name variable for all child elements.

Attributes

name

Name of the spline dimension used for easier identification

number_of_points

number of control points in this dimension

degree

degree of the spline in this dimension

knot_vector

knot vector describing the knot intervals of the spline in the current dimension

save_location

Definition of the save location of the logs and validation results.

logger_name

name of the logger.

degree: ConstrainedIntValue

degree of the spline in this dimension

get_knot_vector() List[float]

Function returns the Knot vector given in the object.

Returns:

Direct return of the inner variable.

Return type:

List[float]

knot_vector: List[float] | None

knot vector describing the knot intervals of the spline in the current dimension

name: str

Name of the spline dimension used for easier identification

number_of_points: ConstrainedIntValue

number of control points in this dimension