SINTEF / Splipy

Spline modelling made easy.
GNU General Public License v3.0
100 stars 18 forks source link

Surface.normal does not support 'tensor' keyword #55

Closed VikingScientist closed 6 years ago

VikingScientist commented 6 years ago
from splipy import *
import numpy as np

surf = Surface()
t = np.linspace(0,1,10)
x     = surf.evaluate(t,t, tensor=False) # gives output x.shape == [10,10,2]
x     = surf.evaluate(t,t, tensor=True) # gives output x.shape == [10,2]
dx,dy = surf.tangent( t,t, tensor=True) # gives output dx.shape == [10,10,2]
x     = surf.normal(  t,t, tensor=True) # crashes miserably :(