Check that there are adds
This commit is contained in:
parent
3437373ac7
commit
699921c0e2
2 changed files with 6 additions and 1 deletions
|
|
@ -150,6 +150,11 @@ namespace MatterHackers.PolygonMesh
|
|||
|
||||
private static void EnsureFaceNormals(Plane plane, Mesh resultsMesh, int countPreAdd)
|
||||
{
|
||||
if (countPreAdd >= resultsMesh.Faces.Count)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check that the new face normals are pointed in the right direction
|
||||
if ((new Vector3(resultsMesh.Faces[countPreAdd].normal) - plane.Normal).LengthSquared > .1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue