ianmackenzie / elm-geometry

2D/3D geometry package for Elm
Mozilla Public License 2.0
183 stars 26 forks source link

SketchPlane3d.through missing #105

Closed MartinSStewart closed 5 years ago

MartinSStewart commented 5 years ago

The function SketchPlane3d.through is missing. If I want to create a sketch plane from a point + direction I have to instead use Plane3d.through and then Plane3d.fromPlane.

This is a minor inconvenience but it seems odd that SketchPlane3d can't do this directly.

ianmackenzie commented 5 years ago

Seems reasonable, but raises a few questions it would be great to hear your thoughts on:

MartinSStewart commented 5 years ago
ianmackenzie commented 5 years ago

Ugh, thanks, my brain was clearly not working yesterday! You're right, especially with SketchPlane3d.withNormalDirection and SketchPlane3d.throughPoints already defined, SketchPlane3d.through does seem like an omission.

I think I'm getting pretty close to an initial release of the next major version of elm-geometry with units/coordinate systems tracking, so I might just roll this into that version.

MartinSStewart commented 5 years ago

Hehe, no worries. I look forward to the new version. 👍

ianmackenzie commented 5 years ago

As a side note, I was thinking it might also make sense to have SketchPlane3d.fromXAxis and SketchPlane3d.fromYAxis functions that arbitrarily choose a Y or X direction respectively. Useful if you want to do something like revolve a profile around an axis, so you need a sketch plane through that axis but don't really care where the revolution "starts".