-
Notifications
You must be signed in to change notification settings - Fork 113
Rhino box bug #1052
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
Rhino box bug #1052
Conversation
|
this is not really related to the content of this PR, but we should find a way to test this kind of thing as part of the automated testing framework. since |
I agree. Wasn't aware of |
|
So this is trickier than I imagined. I could mock # bnd_box.h
BND_Box(const class BND_BoundingBox& bbox);
//BND_Box(Plane basePlane, Interval xSize, Interval ySize, Interval zSize)
//BND_Box(Plane basePlane, IEnumerable<Point3d> points)
//BND_Box(Plane basePlane, GeometryBase geometry)
//BND_Box(Plane basePlane, BoundingBox boundingbox)Maybe this is due to lack of whatever dark magic layer which wraps around constructor overloading. But nor sure what can be done about it. We could maybe compile our own shared library but that seems like a lot of work, and will not be available on the test pipeline. @gonzalocasas @brgcode what do you think? |
|
not sure we talking about the same thing. what i had in mind is that we export some geometries from Rhino as 3dm files and add them to the collection test samples that can be read during the testing process using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
About the unit testing conversation, let's keep it separate from this PR, maybe move to a github issue or discussion.
This is to address two issues related to conversion to/from RhinoBox.
CompasBox => RhinoBox
Was missing the offsetting of the frame point to account for the difference in frame location in box in COMPAS and Rhino (center vs. corner)
RhinoBox => CompasBox
Was missing scaling the offset values by the axes, causing a discrepancy when converting a transformed (rotated) Box.
This might be considered a breaking change since client code compensating for this will now behave differently. But open for debate.
Checklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.mdfile in theUnreleasedsection under the most fitting heading (e.g.Added,Changed,Removed).invoke test).invoke lint).