diff --git a/MatterControlLib/DesignTools/Operations/CurveObject3D_2.cs b/MatterControlLib/DesignTools/Operations/CurveObject3D_2.cs index 293ab70c0..2e7aaf6de 100644 --- a/MatterControlLib/DesignTools/Operations/CurveObject3D_2.cs +++ b/MatterControlLib/DesignTools/Operations/CurveObject3D_2.cs @@ -64,7 +64,7 @@ namespace MatterHackers.MatterControl.DesignTools [Range(3, 360, ErrorMessage = "Value for {0} must be between {1} and {2}.")] [Description("Ensures the rotated part has a minimum number of sides per complete rotation")] - public double MinSidesPerRotation { get; set; } = 10; + public double MinSidesPerRotation { get; set; } = 30; [Range(0, 100, ErrorMessage = "Value for {0} must be between {1} and {2}.")] [Description("Where to start the bend as a percent of the width of the part")] @@ -207,23 +207,10 @@ namespace MatterHackers.MatterControl.DesignTools public static void SplitMeshAlongX(Mesh mesh, List cuts, double onPlaneDistance) { - var faceSplit = false; - do + for (int j = 0; j < cuts.Count; j++) { - faceSplit = false; - for (int i = 0; i < mesh.Faces.Count; i++) - { - for (int j = 0; j < cuts.Count; j++) - { - if (mesh.SplitFace(i, new Plane(Vector3.UnitX, cuts[j]), .1)) - { - faceSplit = true; - i = mesh.Faces.Count; - break; - } - } - } - } while (faceSplit); + mesh.Split(new Plane(Vector3.UnitX, cuts[j]), .1); + } return; List finalVertices = new List(); diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 0518c411a..d06689e61 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 0518c411a09f4a8b22c417412cd8533d6fcb31db +Subproject commit d06689e6155b9048cd3a91c208d2352f55a64b55