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

Introduce Cone3d shape #131

Merged
merged 7 commits into from
May 2, 2020
Merged

Introduce Cone3d shape #131

merged 7 commits into from
May 2, 2020

Conversation

w0rm
Copy link
Contributor

@w0rm w0rm commented Apr 30, 2020

This is an initial take on the Cone3d shape. This is mostly copied from Cylinder3d with some modifications:

  • Renamed start and end points to base and tip points
  • Changed the axis center to be the base point
  • Removed endCap, and renamed startCap to base
  • Removed centeredOn and centerPoint
  • Removed revesrse
  • Added basePlane

I wonder if the API is OK, then I can work on some tests.

@w0rm w0rm force-pushed the cone3d branch 2 times, most recently from 4232317 to f013ab2 Compare April 30, 2020 21:27
src/Cone3d.elm Outdated Show resolved Hide resolved
src/Cone3d.elm Outdated Show resolved Hide resolved
@ianmackenzie
Copy link
Owner

I think this API looks good!

@w0rm
Copy link
Contributor Author

w0rm commented Apr 30, 2020

@ianmackenzie thanks for the review! I will work on the tests tomorrow. Let me know if you have any ideas, otherwise I will base them on the existing cylinder tests.

@ianmackenzie
Copy link
Owner

No particular test ideas off the top of my head, but if I think of anything I'll let you know =)

@w0rm
Copy link
Contributor Author

w0rm commented May 1, 2020

@ianmackenzie I ported a couple tests from cylinder. Let me know if anything is missing in this PR!

@w0rm w0rm changed the title WIP Cone3d shape Introduce Cone3d shape May 1, 2020
src/Cone3d.elm Outdated Show resolved Hide resolved
@ianmackenzie
Copy link
Owner

I think this looks good now! I like the tests =)

@ianmackenzie ianmackenzie merged commit dbefa21 into ianmackenzie:master May 2, 2020
@w0rm w0rm deleted the cone3d branch May 2, 2020 22:12
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

Successfully merging this pull request may close these issues.

2 participants