Exemplo n.º 1
0
 def atest_writenewblg(self):
     def test_bseq():
         seq  = ''
         seq += 'L<0>'
         seq += 'L<1>'
         fseq = 'S<0,0.3,0.5,0,0,1,0>' # make living room on left
         fseq += 'S<0,0.3,0.5,0,0,1,0>' # make living room on left
         fseq += 'S<0,0.3,0.5,0,1,0,0>' # make living room on left
         fseq += 'R<2,rtype,closed>'
         fseq += 'C<0,0.2,0.2,0.2,0.2>'
         fseq += 'C<1,0.2,0.2,0.2,0.2>'
         fseq += 'C<3,0.2,0.2,0.2,0.2>'
         fseq += 'C<2,0.2,2,0.2,2>'
         fseq += 'E<1,0>'
         fseq += 'E<1,2>'
         fseq += 'E<2,3>'
         fseq += 'E<2,0>'
         #fseq += 'X<3>'
         seq += 'I<0,'+fseq+'>'
         seq += 'I<1,'+fseq+'>'
         #seq += 'E<1,0>'
         #seq += 'V<2>'
         #seq += 'V<6>'
         seq += 'X<2>'
         return seq
     bfp = vec3(0,0,0).sq(50,15)
     bsq = test_bseq()
     p,q,s = None,None,None
     bfa = dwo.blg.blgfactory()
     cx = bfa.new(p,q,s,footprint = bfp,sequence = bsq,floorheight = 5)
     dlc.realize(cx,io = 'fbx')
Exemplo n.º 2
0
    def atest_writenewblg(self):
        def test_bseq():
            seq = ''
            seq += 'L<0>'
            seq += 'L<1>'
            fseq = 'S<0,0.3,0.5,0,0,1,0>'  # make living room on left
            fseq += 'S<0,0.3,0.5,0,0,1,0>'  # make living room on left
            fseq += 'S<0,0.3,0.5,0,1,0,0>'  # make living room on left
            fseq += 'R<2,rtype,closed>'
            fseq += 'C<0,0.2,0.2,0.2,0.2>'
            fseq += 'C<1,0.2,0.2,0.2,0.2>'
            fseq += 'C<3,0.2,0.2,0.2,0.2>'
            fseq += 'C<2,0.2,2,0.2,2>'
            fseq += 'E<1,0>'
            fseq += 'E<1,2>'
            fseq += 'E<2,3>'
            fseq += 'E<2,0>'
            #fseq += 'X<3>'
            seq += 'I<0,' + fseq + '>'
            seq += 'I<1,' + fseq + '>'
            #seq += 'E<1,0>'
            #seq += 'V<2>'
            #seq += 'V<6>'
            seq += 'X<2>'
            return seq

        bfp = vec3(0, 0, 0).sq(50, 15)
        bsq = test_bseq()
        p, q, s = None, None, None
        bfa = dwo.blg.blgfactory()
        cx = bfa.new(p, q, s, footprint=bfp, sequence=bsq, floorheight=5)
        dlc.realize(cx, io='fbx')
Exemplo n.º 3
0
def teststage(**kws):
    kws['years'] = 0

    s = 736
    s = 682
    s = 189
    s = 916
    s = 286
    #s = random.randint(0,1000)

    fkws = {
        'seed': s,
    }
    wkws = {
        'boundary': vec3(0, 0, 0).pring(500, 8),
        #'landmasses' : [vec3(0,0,0).pring(250,8)],
    }
    cx = dwo.worldfactory(**fkws).new(**wkws)
    dlc.realize(cx, **kws)
Exemplo n.º 4
0
def teststage(**kws):
    kws['years'] = 0

    s = 736
    s = 682
    s = 189
    s = 916
    s = 286
    #s = random.randint(0,1000)

    fkws = {
        'seed' : s,
            }
    wkws = {
        'boundary' : vec3(0,0,0).pring(500,8),
        #'landmasses' : [vec3(0,0,0).pring(250,8)],
            }
    cx = dwo.worldfactory(**fkws).new(**wkws)
    dlc.realize(cx,**kws)
Exemplo n.º 5
0
def cont():
    dds = dld.dilapidors['ivy'](4)
    dlc.realize(dlc.contextualizer['continent'](dilaps=[dds]), 7)
Exemplo n.º 6
0
def street():
    dds = dld.dilapidors['ivy'](4)
    dlc.realize(dlc.contextualizer['street'](dilaps=[dds]), 7)
Exemplo n.º 7
0
def houselot():
    dds = dld.dilapidors['ivy'](4)
    dlc.realize(dlc.contextualizer['lot'](dilaps=[dds]), 7)
Exemplo n.º 8
0
def cont():
    dds = dld.dilapidors['ivy'](4)
    dlc.realize(dlc.contextualizer['continent'](dilaps = [dds]),7)
Exemplo n.º 9
0
def street():
    dds = dld.dilapidors['ivy'](4)
    dlc.realize(dlc.contextualizer['street'](dilaps = [dds]),7)
Exemplo n.º 10
0
def houselot():
    dds = dld.dilapidors['ivy'](4)
    dlc.realize(dlc.contextualizer['lot'](dilaps = [dds]),7)