For away3 cylinders
The top center vertex should be
var ctop:Vector3D =
cylinder.geometry.vertices[cylinder.geometry.vertices.length - 1].position;

bottom center vertex
var cbot:Vector3D = cylinder.geometry.vertices[2].position

If the cylinder had any rotation scene position would be
var spt:Vector3D = cylinder.sceneTransform.transformVector(ctop)
var spb:Vector3D = cylinder.sceneTransform.transformVector(cbot)

Reply via email to