Python (VTK): Connect two 3D points by an oriented cylinder -


consider have 2 points in 3d space, wishing connect them cylinder specified radius. apparently height (length) of cylinder distance between tow 2 points. standard cylinder object has nothing oriented follow above.

how this?

the simplest way can see using tubefilter. draw line between 2 points , apply filter. here example in c++, should straightforward port python.

edit: , here there's example in python if helps.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -