Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/b/l/Blender-Exporter-HEAD/org.xml3d.exporter.blender/src/2.49/xml3d_exporter.py   Blender-Exporter(Download)
 
        if has_quads:
            oldmode = Mesh.Mode()
            Mesh.Mode(Mesh.SelectModes['FACE'])
 
            aMesh.sel = True
            tempob = self.scene.objects.new(aMesh)
            aMesh.quadToTriangle(0) # more=0 shortest length
            oldmode = Mesh.Mode(oldmode)
            self.scene.objects.unlink(tempob)
 
            Mesh.Mode(oldmode)
 
        data = self.doc.createDataElement(normalizeID(mesh.name)+"_data", None, None, None, None)