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

Should PlaneShape(normal, point) really be deprecated? #373

Closed
mxgrey opened this issue Apr 9, 2015 · 4 comments
Closed

Should PlaneShape(normal, point) really be deprecated? #373

mxgrey opened this issue Apr 9, 2015 · 4 comments
Assignees
Milestone

Comments

@mxgrey
Copy link
Member

mxgrey commented Apr 9, 2015

I noticed that the constructor has been deprecated in favor of PlaneShape(normal, offset), but is it really necessary to deprecate it? I can imagine it being convenient for an end user to construct a PlaneShape using normal and point information, and I don't see why having the two alternative constructors would hurt anything.

@jslee02
Copy link
Member

jslee02 commented Apr 14, 2015

It's deprecated while changing the member variables from (normal, point(3d-vector)) to (normal, offset(scalar)) since point is redundant representation. I agree that PlaneShape(normal, point) is still convenient constructor. One minor concern is that we should provide [set/get]Point(~) also or not.

@mxgrey
Copy link
Member Author

mxgrey commented Apr 15, 2015

I think that the point information is sort of lost once the plane is constructed, because there are infinite points that can be used to define a plane. I don't really see that function as being necessary.

@jslee02
Copy link
Member

jslee02 commented Apr 15, 2015

If the specific point information, which is provided the user, is fine to be lost, it looks good to have the constructor. I'll revert the deprecation.

@jslee02 jslee02 self-assigned this Apr 15, 2015
@jslee02 jslee02 added this to the Release DART 5.0 milestone Apr 15, 2015
@mxgrey
Copy link
Member Author

mxgrey commented Apr 30, 2015

Looks like this has been resolved.

@mxgrey mxgrey closed this as completed Apr 30, 2015
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