added 3d line and prism methods.