def rectangle(self, center, xlen, ylen, value): rectangle(self.maskx, twodim.center_ex(center), xlen, ylen, value) rectangle(self.masky, twodim.center_ey(center), xlen, ylen, value) rectangle(self.maskz, twodim.center_ez(center), xlen, ylen, value) return self
def rectangle_e(self, center, xlen, ylen, value): rectangle(self.epsilon_rx, twodim.center_ex(center), xlen, ylen, value) rectangle(self.epsilon_ry, twodim.center_ey(center), xlen, ylen, value) rectangle(self.epsilon_rz, twodim.center_ez(center), xlen, ylen, value) return self
def circle(self, center, r, value): circle(self.maskx, twodim.center_ex(center), r, value) circle(self.masky, twodim.center_ey(center), r, value) circle(self.maskz, twodim.center_ez(center), r, value) return self
def circle_e(self, center, r, value): circle(self.epsilon_rx, twodim.center_ex(center), r, value) circle(self.epsilon_ry, twodim.center_ey(center), r, value) circle(self.epsilon_rz, twodim.center_ez(center), r, value) return self