pyvista / pyvista-support

[moved] Please head over to the Discussions tab of the PyVista repository
https://github.com/pyvista/pyvista/discussions
59 stars 4 forks source link

Channel Surfaces in `pyvista` #377

Open adamgranthendry opened 3 years ago

adamgranthendry commented 3 years ago

Is there a way to create channel surfaces in pyavi? Alternatively, surface envelopes in general would be very useful.

For example, I am creating a pyavi.Spline.tube, but it is not always following my spline (i.e. the centerline of my tube is not always on the spline). This particularly occurs at "sharp points", which may be inducing a high degree of twist.

Any help in this area would be great! Thank you in advance.

For example, could we make a torus knot tube as in Mathematica (see example here).

akaszynski commented 3 years ago

I'm not seeing a great way of doing this. In pyvista we have the extrude filter, but this only allows you to follow a simple vector, rather than sweeping polydata along a path and extracting the outer surface.

adamgranthendry commented 3 years ago

@akaszynski Thank you for your reply. Why does pyavi not use my spline as my tube centerline when creating a tube?

akaszynski commented 3 years ago

Could you please post the code you used? Also, I'm not familiar with pyavi. Is this the same as pyvista?

adamgranthendry commented 3 years ago

Actually, you can close this issue. Sorry. The error was coming from somewhere else, not pyvista.