I used mesh3d to fill out the space between to Bezier curves, but I get something I don’t want
To built Bezier’s curves I use GitHub - torresjrjr/Bezier.py: ➰ Create Bezier curves in Python [Mirror]
import numpy as np
import plotly.graph_objects as go
from Bezier import Bezier
t_points = np.arange(0, 1, 0.01)
points1 = np.array([[-5, 0], [0, 6], [8, 5], [8, 5]])
curve1 = Bezier.Curve(t_points, points1)
x1=[x[0] for x in curve1]
y1=[1 for x in curve1]
z1=[x[1] for x in curve1]
points2 = np.array([[-5, 0], [0, 6], [8, 5], [8, 5]])
curve2 = Bezier.Curve(t_points, points2)
x2=[x[0] for x in curve2]
y2=[10 for x in curve2]
z2=[x[1] for x in curve2]
dat=[go.Scatter3d(x=x1,y=y1,z=z1,
mode ='lines',
name='c1',
line=dict(color='red',width=3)),
go.Scatter3d(x=x2,y=y2,z=z2,
mode ='lines',
name='c2',
line=dict(color='red',width=3)),
go.Mesh3d(x=x1+x2,y=y1+y2,z=z1+z2,
delaunayaxis='x',
name='sup',
opacity=0.5,
color ='green'
)]
I don’t want the following par to appear in the figure
How can I remove it?
Thanks