From ae427550cebc71263e05fbea22ae386452bf08b3 Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Thu, 3 Apr 2014 08:20:50 -0700 Subject: [PATCH] Refactoring while writing documentation. --- PartPreviewWindow/CreateDiscreteMeshes.cs | 4 ++-- PartPreviewWindow/PlatingHelper.cs | 2 +- PartPreviewWindow/View3DTransfromPart.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PartPreviewWindow/CreateDiscreteMeshes.cs b/PartPreviewWindow/CreateDiscreteMeshes.cs index ff3fc9c2e..9720b5e9f 100644 --- a/PartPreviewWindow/CreateDiscreteMeshes.cs +++ b/PartPreviewWindow/CreateDiscreteMeshes.cs @@ -127,7 +127,7 @@ namespace MatterHackers.MatterControl // figure out which area one or more of the vertices are in add the face to the right new mesh foreach (FaceEdge faceEdge in face.FaceEdgeIterator()) { - Vector2 position = new Vector2(faceEdge.vertex.Position.x, faceEdge.vertex.Position.y); + Vector2 position = new Vector2(faceEdge.firstVertex.Position.x, faceEdge.firstVertex.Position.y); position += renderOffset; position *= scaleFactor; @@ -138,7 +138,7 @@ namespace MatterHackers.MatterControl List faceVertices = new List(); foreach (FaceEdge faceEdgeToAdd in face.FaceEdgeIterator()) { - Vertex newVertex = discreteMeshes[areaIndex].CreateVertex(faceEdgeToAdd.vertex.Position); + Vertex newVertex = discreteMeshes[areaIndex].CreateVertex(faceEdgeToAdd.firstVertex.Position); faceVertices.Add(newVertex); } diff --git a/PartPreviewWindow/PlatingHelper.cs b/PartPreviewWindow/PlatingHelper.cs index 5749fed02..f470ac01f 100644 --- a/PartPreviewWindow/PlatingHelper.cs +++ b/PartPreviewWindow/PlatingHelper.cs @@ -80,7 +80,7 @@ namespace MatterHackers.MatterControl foreach (FaceEdge faceEdgeToAdd in face.FaceEdgeIterator()) { // we allow duplicates (the true) to make sure we are not changing the loaded models acuracy. - Vertex newVertex = allPolygons.CreateVertex(faceEdgeToAdd.vertex.Position, true); + Vertex newVertex = allPolygons.CreateVertex(faceEdgeToAdd.firstVertex.Position, true); faceVertices.Add(newVertex); } diff --git a/PartPreviewWindow/View3DTransfromPart.cs b/PartPreviewWindow/View3DTransfromPart.cs index 4f9ffffac..289307c68 100644 --- a/PartPreviewWindow/View3DTransfromPart.cs +++ b/PartPreviewWindow/View3DTransfromPart.cs @@ -513,7 +513,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow List faceVertices = new List(); foreach (FaceEdge faceEdgeToAdd in face.FaceEdgeIterator()) { - Vertex newVertex = copyMesh.CreateVertex(faceEdgeToAdd.vertex.Position, true); + Vertex newVertex = copyMesh.CreateVertex(faceEdgeToAdd.firstVertex.Position, true); faceVertices.Add(newVertex); }