Refactoring while writing documentation.

This commit is contained in:
larsbrubaker 2014-04-03 08:20:50 -07:00
parent cadd8333e0
commit ae427550ce
3 changed files with 4 additions and 4 deletions

View file

@ -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<Vertex> faceVertices = new List<Vertex>();
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);
}

View file

@ -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);
}

View file

@ -513,7 +513,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
List<Vertex> faceVertices = new List<Vertex>();
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);
}