Blue one is original layer and red one is printed layer (print after OPC).
Calculate the length difference at all line-ends (wire end).Pull back = difference between original layer and printed layer at wire end.
Sorry can't type Chinese.
Any SVRF tutorial would help.I used c++ do coordinates selected and capture for now.
I am stuck in another related question: how to use SVRF calculate critical area.