Skip to content

cutThruAll failure #355

@adam-urbanczyk

Description

@adam-urbanczyk

The following code fails:

import cadquery as cq

sphere_r = 10.

result = (cq.Workplane("XY").sphere(sphere_r)
            .workplane(centerOption="ProjectedOrigin").circle(sphere_r / 2.).cutThruAll()
            .workplane(centerOption="ProjectedOrigin").transformed(rotate=(90, 0, 0))
            .circle(sphere_r / 2.).cutThruAll()
            .workplane(centerOption="ProjectedOrigin").transformed(rotate=(0, 90, 0))
            .circle(sphere_r / 2.).cutThruAll()
            .workplane(centerOption="ProjectedOrigin").circle(sphere_r / 2.).extrude(sphere_r + 2, both=True))

perturbaing one of the angles makes it work

import cadquery as cq

sphere_r = 10.

result = (cq.Workplane("XY").sphere(sphere_r)
            .workplane(centerOption="ProjectedOrigin").circle(sphere_r / 2.).cutThruAll()
            .workplane(centerOption="ProjectedOrigin").transformed(rotate=(90, 0, 0))
            .circle(sphere_r / 2.).cutThruAll()
            .workplane(centerOption="ProjectedOrigin").transformed(rotate=(0, 89.9, 0))
            .circle(sphere_r / 2.).cutThruAll()
            .workplane(centerOption="ProjectedOrigin").circle(sphere_r / 2.).extrude(sphere_r + 2, both=True))

show_object(result)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions