gumyr / cq_warehouse

A cadquery parametric part collection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rework fastener.head_height

gumyr opened this issue · comments

Change the head_height algorithm from this:

    @property
    def head_height(self):
        """Calculate the maximum height of the head"""
        if self.head is None:
            result = 0
        else:
            result = self.head.vertices(">Z").val().Z - self.head.vertices("<Z").val().Z
        return result

to one that uses a bounding box.