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

cone_2p ZeroDivisionError: float division #811

Closed
AGeissler opened this issue Dec 26, 2022 · 0 comments
Closed

cone_2p ZeroDivisionError: float division #811

AGeissler opened this issue Dec 26, 2022 · 0 comments

Comments

@AGeissler
Copy link

AGeissler commented Dec 26, 2022

Describe the bug
ZeroDivisionError: float division from cone_2p when apex has smaller z than base.

To Reproduce

  1. A simplified Python script which triggers the error.
    base_test=[ 6.275 , 13.8 , 3.07673913]
    apex_test=[ 6.275 , 13.8 , 2.77673913]
    from ezdxf.render import forms
    cone = forms.cone_2p(16, 0.1, base_test, apex_test)

  2. Information about the ezdxf version and the OS.
    ezdxf 1.0.0, render.py updated to last commit (Dec. 26). MacOS 12.6.2.

  3. If a 3rd party DXF file causes the error, add a simplified and zipped
    DXF file which still triggers the error.
    N.A.

Expected behavior
Generation of a cone pointing downwards in WCS.

Screenshots
N.A.

@mozman mozman closed this as completed in 8b1e134 Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant