added support for computeO

https://github.com/whyi/SketchFormer/issues/11