Ignore:
Timestamp:
03/22/12 21:17:08 (13 years ago)
Author:
neise
Message:
added member, which contains numpy arrays instead of Vector2 objects. this class needs reworking! It is simply ugly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/coor.py

    r13143 r13181  
    4141        ey = Vector2( 0. , 1. )
    4242        ex = Vector2( sqrt(3)/2. , 1./2. )
     43        self.center = ( center.x , center.y )
     44        self.ey =  ( ey.x, ey.y)
     45        self.ex = ( ex.x, ex.y )
    4346
    4447        coor2chid = {}
    4548        chid2coor = {}
     49        chid2coor_np = {}
    4650        chid2vec  = {}
    4751        for vector_and_chid in vectors_and_chids:
     
    6872            coor2chid[ coor ] = chid
    6973            chid2coor[ chid ] = coor
     74            chid2coor_np[ chid ] = np.array(coor)
    7075            chid2vec[ chid ] = coor_vec
    7176
     
    8691        self.nn = chid2nn
    8792        self.chid2coor = chid2coor
     93        self.chid2coor_np = chid2coor_np
    8894        self.coor2chid = coor2chid
    8995        self.chid2vec  = chid2vec
Note: See TracChangeset for help on using the changeset viewer.