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

Shapes without location #143

Open
jtrakk opened this issue Apr 7, 2021 · 2 comments
Open

Shapes without location #143

jtrakk opened this issue Apr 7, 2021 · 2 comments

Comments

@jtrakk
Copy link

jtrakk commented Apr 7, 2021

I want to have a shape without specifying its location. For example, to ask "what is the volume of a sphere with radius 10", regardless of its location with respect to a scene. As a workaround I could make my shapes have location Point(0,0,0), but that seems like unnecessary complication. Is this a good package for location-free shapes, or should that go in another package? If it would be another package, could they interoperate?

@sjkelly
Copy link
Member

sjkelly commented Apr 8, 2021

I've had good luck using CoordinateTransformations.jl with my own geometry structs.

@jtrakk
Copy link
Author

jtrakk commented Apr 8, 2021

I was thinking something like Circle(5) for a circle with radius 5. In fact, a circle doesn't need a radius either.

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

2 participants