Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Null TopoDS_Shape object with offset of circle #1757

Open
louisabraham opened this issue Jan 29, 2025 · 1 comment
Open

ValueError: Null TopoDS_Shape object with offset of circle #1757

louisabraham opened this issue Jan 29, 2025 · 1 comment
Labels
bug Something isn't working OCC kernel issue

Comments

@louisabraham
Copy link

louisabraham commented Jan 29, 2025

ellipsis_big = 1
ellipsis_small = 1
s = cq.Sketch().ellipse(ellipsis_big, ellipsis_small).wires().offset(-0.1, mode="s")

Any value of ellipsis_small different than 1 will not cause a bug. Using circle or ellipsis_small = ellipsis_big causes ValueError: Null TopoDS_Shape object. Currently I use 0.999 to alleviate the issue.

@louisabraham louisabraham added the bug Something isn't working label Jan 29, 2025
@adam-urbanczyk
Copy link
Member

Confirmed, FWIW a workaround:

import cadquery as cq

from cadquery.func import wire, ellipse
from math import pi

eps = 1e-6

s = cq.Sketch().face(wire(ellipse(1,1).trim(0,2*pi-eps)).wires().offset(-0.1, mode='s')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OCC kernel issue
Projects
None yet
Development

No branches or pull requests

3 participants
@louisabraham @adam-urbanczyk and others