Example #1
0
 def __init__(self,shape):
     if not getShapeBasePolygon(shape):
         polygons = getPolygonesFromShape(shape)
         for polygon in polygons:
             print "polygon:"
             for pnt in polygon.points:
                 print("point is: (%.2f, %.2f, %.2f) " % (pnt.x, pnt.y, pnt.z))
         raise NotWallShapeException("wall doesn't have base polygon")
     super(Wall, self).__init__(shape)
Example #2
0
def main():
    file = "IFCFiles/ifc_adv1.ifc"
    wShapes, sShapes = createShapes(file)
    space_shapes = getSpaceShapesFromIfc(file)
    for _, shape in space_shapes:
        polygons = getPolygonesFromShape(shape)
        print("shape is ************************************")
        for polygon in polygons:
            print("polygon:")
            for pnt in polygon.points:
                print(("point is: (%.2f, %.2f, %.2f) " % (pnt.x, pnt.y, pnt.z)))
    launcher = Launcher(wallShapes=wShapes, slabShapes=sShapes)
    launcher.multiSearch('saveAdv', iterations=1)