def compute(self):
        switches = None
        if self.has_input("switches") :
            switches = self.get_input("switches")
            print switches
        if self.has_input("tgio in") :
            tgio_in = self.get_input("tgio in").data

        print "input has %d nodes!" % tgio_in.numberofpoints
        tgio_in.save_nodes("/tmp/tgIN.vt")
        tgio_in.save_poly("/tmp/tgIN.vt")
        out  = tetgenio_wrapper()
        TetGen.tetrahedralize(switches, tgio_in, out.data)
        print "Done making tets"

        self.set_output("tgio out", out)
dataset/ETHPy150Open VisTrails/VisTrails/contrib/TetGenBridge/__init__.py/tetrahedralize.compute/original