private function onmd(e:MouseEvent):void<BR> {<BR> var pllane3D = new Plane3D();<BR> pl.fromNormalAndPoint(new Vector3D(0, 0, -1), new Vector3D());<BR> var v:Vector3D = camera.unproject(view.mouseX, view.mouseY)<BR> v=v.add(camera.position);<BR> var p:Vector3D = pl.getIntersectionLineNumbers(v, camera.position);<BR> }<BR>
var lineSegment = new LineSegment();<BR>l.end = new Vertex(0,0,p.z);<BR>l.start = new Vertex(p.x, p.y,p.z);<BR>l.material = new WireframeMaterial(0xff0000);<BR>scene.addChild(l);<BR>