var testLine = new THREE.Line3(new THREE.Vector3(0,0,0), new THREE.Vector3(6,0,0))
var beam = new Member.Beam(testLine, "primary", 2, 40, 0.15)
console.log(beam)
But that does not work since I always get errors like this:
it seems you are mixing a few concepts here. I’m not sure what you actually want in the long run.
but in your example the extends THREE.Line3 is serving no purpose, since you are not calling super() in the constructor and you are have actually already created the THREE.Line before you call new Beam()
So now when you console.log your beam, you get all the properties expected of a line, plus your custom additions (type, story, etc)
Perhaps extending is not what you are really after since in your example code you have already created the line first before you create your beam. Maybe you just want your beam to have a property that is the line. It is not necessary to extend in that case.