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))
    ]
예제 #2
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))
        ]
예제 #3
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 []
예제 #4
0
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 []
예제 #5
0
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 []
예제 #6
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 []
예제 #7
0
def _3d(conf):
    """Add 3d model."""
    if "model" in conf:
        return [model(**conf['model'])]
    else:
        return []
예제 #8
0
def _3d(conf):
    if "model" in conf:
        return [model(**conf["model"])]
    else:
        return []
예제 #9
0
def _3d(conf):
    """Add 3d model."""
    if "model" in conf:
        return [model(**conf['model'])]
    else:
        return []
예제 #10
0
def _3d(conf):
    if "model" in conf:
        return [model(**conf["model"])]
    else:
        return []