Shifting infill pattern "X" to centerpoint of workspace

I would like to solve this, but i need some comentarys on basic idea of method "generateLineInfill" in "infill.cpp"
See thread:
http://umforum.ultimaker.com/index.php?/topic/5937-ability-to-shift-infill-pattern-in-cura/#entry54789
Thank you.