def growBlaetter(self): self.lBt = [] tOffsAngAzm = self.dITp['dOffsAngAzm'][self.nKKt][self.sDir] self.offsAngAzm = Fkt.drawDst(tOffsAngAzm, self.cM, self.dIA['dMinMax']['AngAzm']) if self.dIA['modelBlatt']: vN = Fkt.findRotAxis(self.vDirC, self.sZwTp, self.dIA['tolAngV']) for iKKt in range(self.nKKt): cAnBtPlr = self.lAnKPlr[iKKt] * self.dITp['fAngBlattPlr'] cAnKsAzm = self.lAnKAzm[iKKt] + self.offsAngAzm * self.iKtZw cAnBtPlr, cAnKsAzm = Fkt.adjustAngPA(cAnBtPlr, cAnKsAzm) vR = Fkt.rotatePt3D(self.vDirC, vN, cAnBtPlr) vDB = Fkt.rotatePt3D(vR, self.vDirC, cAnKsAzm) self.lBt.append(self.growBlatt(vDB, iKKt))
def formPinchKnospen(self, dPrPKKt, tMnMx): if self.fAct: # form Knospen vN = Fkt.findRotAxis(self.vDirC, self.sZwTp, self.dIA['tolAngV']) for iKKt in range(self.nKKt): cAnKsAzm = self.lAnKAzm[iKKt] + self.offsAngAzm * self.iKtZw tAn = Fkt.adjustAngPA(self.lAnKPlr[iKKt], cAnKsAzm) self.lAnKPlr[iKKt], cAnKsAzm = tAn vR = Fkt.rotatePt3D(self.vDirC, vN, self.lAnKPlr[iKKt]) vDKKt = Fkt.rotatePt3D(vR, self.vDirC, cAnKsAzm) sDirN = Fkt.getSDir(self.sDir, vDKKt, vUz, self.dIA['tolAngV']) self.lKKt.append( Knospe(self.dIA, self.dITp, self.cMk, self.nKZw, (self.IDKt, iKKt), self.pathID, iKKt, self.yrG, self.ageB, self.ageZ, self.lenZ, self.pKC, self.pKR, self.sDir, sDirN, self.vDirC, vDKKt)) self.lNumKs[1] += 1 self.pinchKnospen(dPrPKKt, tMnMx)