Continuing to get width depth scaling working
This commit is contained in:
parent
d5ca11dcd4
commit
f7c269426a
2 changed files with 19 additions and 7 deletions
|
|
@ -254,14 +254,13 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
|
||||
var bottomPosition = GetBottomPosition(selectedItem);
|
||||
var topPosition = GetTopPosition(selectedItem);
|
||||
originalPointToMove = topPosition;
|
||||
|
||||
var upNormal = (topPosition - bottomPosition).GetNormal();
|
||||
var sideNormal = upNormal.Cross(mouseEvent3D.MouseRay.directionNormal).GetNormal();
|
||||
var planeNormal = upNormal.Cross(sideNormal).GetNormal();
|
||||
hitPlane = new PlaneShape(new Plane(planeNormal, mouseEvent3D.info.HitPosition), null);
|
||||
|
||||
originalPointToMove = GetTopPosition(selectedItem);
|
||||
|
||||
initialHitPosition = mouseEvent3D.info.HitPosition;
|
||||
if (selectedItem is IObjectWithHeight heightObject)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue