refactoring

This commit is contained in:
MatterHackers 2023-04-08 14:17:48 -07:00
parent fa7f9a3980
commit 39aa54ba82
3 changed files with 3 additions and 18 deletions

View file

@ -57,7 +57,7 @@ namespace MatterHackers.MatterControl
var totalBounds = meshToSplit.GetAxisAlignedBoundingBox();
var facesSharingVertex = meshToSplit.NewVertexFaceLists();
var facesSharingVertex = meshToSplit.GetVertexFaceLists();
for (int faceIndex = 0; faceIndex < faceCount; faceIndex++)
{

View file

@ -75,22 +75,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
public static void CheckManifoldData(CombineObject3D_2 item, IObject3D result)
{
bool IsManifold(Mesh mesh)
{
var meshEdgeList = mesh.NewMeshEdges();
foreach (var meshEdge in meshEdgeList)
{
if (meshEdge.Faces.Count() != 2)
{
return false;
}
}
return true;
}
if (!IsManifold(result.Mesh))
if (!result.Mesh.IsManifold())
{
// create a new combine of a and b and add it to the root
var combine = new CombineObject3D_2();

@ -1 +1 @@
Subproject commit ada6ddc5f4848397e2270cac7420a00fa5ff08f7
Subproject commit 732aaa728c1982b92b8451570a2ab26e7f0f8901