def top_smd_model(pins): return [ model( "${KISYS3DMOD}/Connector_Molex.3dshapes/" + "Molex_PicoBlade_53398-{:02d}71_1x{:02d}".format(pins, pins) + "-1MP_P1.25mm_Vertical.step", (0, -1.3 / 25.4, 0), (1, 1, 1), (0, 0, 0)) ]
def kk_model(pins): if pins <= 16: return [ model( "${KISYS3DMOD}/Connector_Molex.3dshapes/" + "Molex_KK-254_AE-6410-" + "{:02d}A_1x{:02d}".format(pins, pins) + "_P2.54mm_Vertical.step", (0, 0, 0), (1, 1, 1), (0, 0, 0)) ]
def dil_model(pins): if pins <= 40: return [model("${KISYS3DMOD}/Pin_Headers.3dshapes/" + "Pin_Header_Straight_2x{:02d}.wrl".format(pins), (0, 0, 0), (1, 1, 1), (0, 0, 0))] else: return []
def dil_model(pins): if pins <= 40: return [ model( "${KISYS3DMOD}/Connector_PinHeader_2.54mm.3dshapes/" + "PinHeader_2x{:02d}_P2.54mm_Vertical.step".format(pins), (0, 0, 0), (1, 1, 1), (0, 0, 0)) ] else: return []
def sil_model(pins): if pins <= 20: return [ model( "${KISYS3DMOD}/Pin_Headers.3dshapes/" + "PinHeader_1x{:02d}_P2.54mm_Vertical.step".format(pins), (0, 0, 0), (1, 1, 1), (0, 0, 0)) ] else: return []
def dil_model(pins): if pins <= 40: return [ model( "${KISYS3DMOD}/Pin_Headers.3dshapes/" + "Pin_Header_Straight_2x{:02d}.wrl".format(pins), (0, 0, 0), (1, 1, 1), (0, 0, 0)) ] else: return []
def _3d(conf): """Add 3d model.""" if "model" in conf: return [model(**conf['model'])] else: return []
def _3d(conf): if "model" in conf: return [model(**conf["model"])] else: return []