Refactoring while writing documentation.
This commit is contained in:
parent
cadd8333e0
commit
ae427550ce
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue