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

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

src/a/e/Aerospace-Simulations-HEAD/morse/src/morse/geolandloader/geoShapefileLoader.py   Aerospace-Simulations(Download)
        if (N == 5) or (N == 4):
            ff = NMesh.Face([buildingMesh.verts]);
            buildingMesh.faces.extend(ff);
        #--- Creating the walls
        for i in range(N-1):
            else:
                ff = NMesh.Face([buildingMesh.verts[i], buildingMesh.verts[i+(N-1)], buildingMesh.verts[N-1], buildingMesh.verts[0]]);
            buildingMesh.faces.extend(ff);
        #--- Building the roof the roof the roof is on Fire... ah lala
        if (N == 5):
                buildingMesh.verts.extend(xroof, yroof, thisBuildingZ + RoofHeight)
                ff = NMesh.Face([buildingMesh.verts[N-1], buildingMesh.verts[N],  buildingMesh.verts[(2*(N-1))+1],  buildingMesh.verts[(2*(N-1))] ])
                buildingMesh.faces.extend(ff)
                ff = NMesh.Face([buildingMesh.verts[N-1], buildingMesh.verts[(2*(N-1))], buildingMesh.verts[N+2] ])
                buildingMesh.faces.extend(ff)
                ff = NMesh.Face([buildingMesh.verts[N], buildingMesh.verts[(2*(N-1))+1], buildingMesh.verts[N+1] ])
                buildingMesh.faces.extend(ff)

src/p/y/PyPRP-HEAD/PyPRP/prp_Functions.py   PyPRP(Download)
def alcCreateMesh(name,vertices,faces):
    obj = Blender.Mesh.New(name)
    obj.verts.extend(vertices)
    obj.faces.extend(faces)
    scene = Blender.Scene.GetCurrent()
    else:
        faces = [ [0,2,5,1], [5,2,7,4], [1,5,4,6], [0,1,6,3], [3,6,4,7], [0,3,7,2] ]
    obj.faces.extend(faces)
    scene = Blender.Scene.GetCurrent()
    sobj = scene.objects.new(obj,name)
    obj.verts.extend(coords)
    face = [0,1,3,2]
    obj.faces.extend(face)
    scene = Blender.Scene.GetCurrent()
    sobj = scene.objects.new(obj,name)

src/m/a/mavsim-HEAD/blender/import_freecad.py   mavsim(Download)
    mes.verts.extend(meshdata['verts'])
    if meshdata['edges']: mes.edges.extend(meshdata['edges'])
    if meshdata['faces']: mes.faces.extend(meshdata['faces'])
    sce.objects.new(mes,meshdata['name'])