GeometryBasics.jl icon indicating copy to clipboard operation
GeometryBasics.jl copied to clipboard

Shapes without location

Open jtrakk opened this issue 4 years ago • 2 comments

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?

jtrakk avatar Apr 07 '21 01:04 jtrakk

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

sjkelly avatar Apr 08 '21 00:04 sjkelly

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

jtrakk avatar Apr 08 '21 00:04 jtrakk