diff --git a/feigen/_version.py b/feigen/_version.py index 81f0fde..b1a19e3 100644 --- a/feigen/_version.py +++ b/feigen/_version.py @@ -1 +1 @@ -__version__ = "0.0.4" +__version__ = "0.0.5" diff --git a/feigen/nurbs_weights.py b/feigen/nurbs_weights.py index 1dedecd..1295d4a 100644 --- a/feigen/nurbs_weights.py +++ b/feigen/nurbs_weights.py @@ -92,7 +92,9 @@ class NURBSWeights(vedo.Plotter, FeigenBase): __slots__ = ("_c", "_s") - def __init__(self, spline=None): # noqa PLR0915 + def __init__( + self, spline=None, w_min=_W_MIN, w_max=_W_MAX + ): # noqa PLR0915 """ Create spline and setup callbacks """ @@ -119,6 +121,10 @@ def __init__(self, spline=None): # noqa PLR0915 # set title name self._c["window_title"] = "NURBS Weights" + # set weights extrema + self._c["w_min"] = w_min + self._c["w_max"] = w_max + # sampling resolutions default_sampling_resolution = 50 self._c["sample_resolutions"] = default_sampling_resolution @@ -343,7 +349,7 @@ def start(self): ) self.show( - "Solution - right click to sync", + "Jacobian Determinant - right click to sync", at=self._c["server_plot"], interactive=False, mode=self._c["plotter_mode"], @@ -360,8 +366,8 @@ def start(self): self._weight_slider, pos1=[*pos1, 0], pos2=[*pos2, 0], - xmin=_W_MIN, - xmax=_W_MAX, + xmin=self._c["w_min"], + xmax=self._c["w_max"], value=1, s=0.04, title="weight", diff --git a/pyproject.toml b/pyproject.toml index e0bb0e6..4b42ec6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,16 +21,17 @@ classifiers = [ 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: MacOS', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ] dependencies = [ - 'vedo==2023.4.6', + 'vedo>=2023.5.0', 'numpy', - 'splinepy[all]>=0.0.47', + 'gustaf>=0.0.23', + 'splinepy[all]>=0.0.51', 'websockets', ] dynamic = ['version']