union paths before extrude

This commit is contained in:
MatterHackers 2023-10-22 20:09:45 -07:00
parent b0690d3cb2
commit 6a7f1b0caf
4 changed files with 7 additions and 3 deletions

View file

@ -157,6 +157,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
if (childPaths != null)
{
childPaths = childPaths.Union(childPaths);
Mesh = VertexSourceToMesh.Extrude(childPaths, height, bevel, InflatePathObject3D.GetJoinType(Style));
if (Mesh.Vertices.Count == 0)
{

View file

@ -129,7 +129,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
}
var first = participants.First();
var resultsVertexSource = first.GetVertexSource().Transform(first.Matrix);
var resultsVertexSource = first.GetVertexSource().Transform(first.WorldMatrix(this));
var totalOperations = participants.Count() - 1;
double amountPerOperation = 1.0 / totalOperations;
@ -140,7 +140,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
if (item != first
&& item.GetVertexSource() != null)
{
var itemVertexSource = item.GetVertexSource().Transform(item.Matrix);
var itemVertexSource = item.GetVertexSource().Transform(item.WorldMatrix(this));
resultsVertexSource = resultsVertexSource.MergePaths(itemVertexSource, clipType);

View file

@ -1441,6 +1441,9 @@ Translated:Distance or Loops
English:Do CSG
Translated:Do CSG
English:Do Subtract
Translated:Do Subtract
English:Documents
Translated:Documents

@ -1 +1 @@
Subproject commit f70077c6a25aff063ff31628ced66e19c2ab62df
Subproject commit a05d2c24e5e73ded25fd54606c859fcc29cc3a6b