Making Pinch and Curve sort vertices after changing them
issue: MatterHackers/MCCentral#3766 pinch leaves mesh in a bed state
This commit is contained in:
parent
0dd43e84a0
commit
5251839dee
4 changed files with 8 additions and 2 deletions
|
|
@ -172,6 +172,9 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
curvedMesh.Vertices[i].Position = Vector3.Transform(worldWithBend, matrix.Inverted);
|
||||
}
|
||||
|
||||
// the vertices need to be resorted as they have moved relative to eachother
|
||||
curvedMesh.Vertices.Sort();
|
||||
|
||||
curvedMesh.MarkAsChanged();
|
||||
curvedMesh.CalculateNormals();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue