globfit Code for SIGGRAPH 2011 paper GlobFit: Consistently Fitting Primitives by Discovering Global Relations