I became a little unsure regarding to grammar while writing a sentence that, "... will either pass through the top-right or bottom-left corner, during which ...", in which case "which" has an implied antecedent of "passing through". I believe this sentence is clear enough, but wonder whether such usage of "which" may be disapproved in formal or academic writing.
more examples:
"He resigned that post, after which he engaged in ranching."
"He died of cancer, which is what I predicted"