Draw Straight “Line” in Canvas by Modifying Properties in Three.JS
问题 I have created a fiddle which shows the guidelines for length and Diameter for Cylinder I was able to position the Line for Length. But m not sure how to change the properties of line so it draws a straight line to show Diameter, like show in the sample below: // Diameter line var diameterLineGeometry = new THREE.Geometry(); var diameterVertArray = diameterLineGeometry.vertices; diameterVertArray.push(new THREE.Vector3(1, 0.5, 0), new THREE.Vector3(-0.3, 0.7, 1)); diameterLineGeometry