LUCEDA IPKISS Tutorial 81:通过参数函数定义形状
案例分享:通过参数函数i3.ParametricShape 定义版图形状
代码如下:
from si_fab import all as pdk
import ipkiss3.all as i3
import numpy as np
def heart(t):
x = 16 * np.sin(t) ** 3
y = 13 * np.cos(t) - 5 * np.cos(2 * t) - 2 * np.cos(3 * t) - np.cos(4 * t)
return (x, y)
love = i3.ParametricShape(curve=heart, t_max=2 * np.pi).move((3, 3))
element = i3.Boundary(layer=i3.TECH.PPLAYER.SI, shape=love)
layout = i3.LayoutCell().Layout(elements=element)
layout.visualize()