javascript - Three.js Tube Geometry based on a custom geometry -


i've got set of lines vectors like:

line1: [10,10,9,10,10] line2: [10,9,8,10,10] line3: [10,10,10,10,10] 

each value of represents measure of diameter of tube (of nominal diameter 10) @ different heights in tube, each line diameter @ different rotation. is:

  • line1 diameter of tube @ 0 degrees,
  • line2 diameter of tube @ 15 degrees,
  • line3 diameter of tube @ 65 degrees

the number of lines , rotations can vary, want visualise these lines tube (well, tube of partial measurements) in 3d using three.js.

am best trying create custom geometry using many lines have create it, or can use tubegeometry attach lines onto? possible create tube based on these lines values between lines extrapolated?

the end result i'm trying achieve 3d mesh can zoom in , out of.

any thoughts or suggestions welcome!


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -