Merge pull request #2640 from larsbrubaker/design_tools
Leveling quaternion needed to be reversed
This commit is contained in:
commit
25ef7ad0c8
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ namespace MatterHackers.MatterControl
|
|||
double distanceToPlaneAtBedCenter = planeOfPoints.GetDistanceToIntersection(ray, out inFront);
|
||||
|
||||
Matrix4X4 makePointsFlatMatrix = Matrix4X4.CreateTranslation(-bedCenter.X, -bedCenter.Y, -distanceToPlaneAtBedCenter);
|
||||
makePointsFlatMatrix *= Matrix4X4.CreateRotation(Vector3.UnitZ, planeOfPoints.PlaneNormal);
|
||||
makePointsFlatMatrix *= Matrix4X4.CreateRotation(planeOfPoints.PlaneNormal, Vector3.UnitZ);
|
||||
makePointsFlatMatrix *= Matrix4X4.CreateTranslation(bedCenter.X, bedCenter.Y, 0);//distanceToPlaneAtBedCenter);
|
||||
|
||||
bedLevelMatrix = Matrix4X4.Invert(makePointsFlatMatrix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue