CurveFrame node with SvLambdaCurve break
Created by: summereasy
Problem statement
[Curve Frame node] won't work properly with [Curve Formula]
[ERROR] sverchok.utils.curve.core:128 : tangent_array() got an unexpected keyword argument 'tangent_delta'
Steps to reproduce
as shown here:
Environment STATUS
| Software | Version |
|---|---|
| Blender | 3.0 |
| Sverchok | Latest |
| System | MacOS Monterey 12.1 |
I did a bit of search in code ...
FILE: utils/curve/core.py line 743
class SvLambdaCurve(SvCurve):
...
def tangent_array(self, ts): # <--- this line
points = np.vectorize(self.function, signature='()->(3)')(ts)
points_h = np.vectorize(self.function, signature='()->(3)')(ts+self.tangent_delta)
return (points_h - points) / self.tangent_delta
If I change it:
- def tangent_array(self, ts):
+ def tangent_array(self, ts, tangent_delta=None):
It will work fine. But I won't trust me myself to modify it since I am still learning from the code and don't know the whole picture of it. So I just post it here to see if this is a real bug or I just did something wrong.
Sverchok is great, Many Thanks!