Skip to content

Suggestions for multi layer chip CAD generation #1698

Answered by pruj-speed
pruj-speed asked this question in Q&A
Discussion options

You must be logged in to vote

Here is one way to achieve this semiconductor 3D CAD creation. There probably is a much more efficient way to do this. Sharing my hacky implementation for anyone who comes along the same path.

import cadquery as cq
from cadquery.occ_impl.shapes import polyline, face, extrude
from cadquery import Vector
from cadquery.vis import show

# Helper Function

def get_box_dimensions(polygon):
    """
    Calculates the length and width of a rectangle polygon.

    :param polygon: List of (x, y) tuples defining the rectangle.
    :return: Tuple (length, width)
    """
    xs = [point[0] for point in polygon]
    ys = [point[1] for point in polygon]
    length = max(xs) - min(xs)
    width = max(ys) -

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@pruj-speed
Comment options

Comment options

You must be logged in to vote
1 reply
@pruj-speed
Comment options

Comment options

You must be logged in to vote
6 replies
@pruj-speed
Comment options

@adam-urbanczyk
Comment options

@adam-urbanczyk
Comment options

@pruj-speed
Comment options

@pruj-speed
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pruj-speed
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants