UltiMaker Community of 3D Printing Experts

# Sharpest Corner Z-Seam Setting (Problem and Suggestion)

## Recommended Posts

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

If you print a square with identical corners, Cura struggles to find the sharpest one, and will normally retract and move between corners adding a lot of time and a lot of silliness to the pathways.

Sharpest pathway should be a bit less "ONLY THE SHARPEST ONE WILL WORK" and perhaps instead look for the closest sharpest corner within limits. If there is only a 0.01mm difference or less between different corners, just choose the closest.

SUGGESTION

If I were going to write pseudocde, I would analyze all the sharpest corners and put them in an array/list/dictionary along with their distance from the current point. Then we need to set/analyze the optimum ratio between sharpest corner and distance we'll have to travel to get there.

HYPOTHETICAL:
If you have three corners, one is 90d and 50mm away, second is 100d, 10mm away, third is 80d, 100mm away, which do you choose as sharpest? Sharpest is 80d, but at 75mm away, is also farthest.

At this point, I would start looking at benefits of the sharpest corner, and you'd have to weigh each of the decisions based upon your preference for distance or sharpness. Myself, I'd prefer short and sharp in a supply/demand style of curve intersection.

60% preference on shortness (Less distance travelled, less time, better/no retraction).
40% preference on sharpness.(hidden z-seams... other benefits?)

Normalize data to percentages of max values.
100d/x for degree normalization. Inverted because lower degrees are better.
100m/y for distance normalization. Inverted because lower distances are better.

Corner 90d, 50mm, (1.11, 0.5)
## 0.4*1.11 = 0.444
## 0.6*0.5 = 0.3
Total = 0.744 weight

Corner 100d, 10mm (1 , 10)
## 0.4*1 = 0.4
## 0.6*10 = 6
Total = 6.4 weight

Corner 80d, 100mm (1.25, 1)
## 0.4*1.25 = 0.5
## 0.6*1 = 0.6
Total = 1.1 weight

CONCLUSION
You can see that the best corner to start the layer from would be the 100d, 10mm one in this algorithm. I would set the preference weights to be user-adjustable in the Cura interface under the Sharpest Corner preference.

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

As the person who coded the sharpest corner feature, here's my thoughts...

Don't use it for any model that has corners of similar "sharpness". Personally, I always use the user-defined z-seam hint with, maybe a seam corner preference but I never use sharpest corner z seam alignment. Personally, I would not choose sharpest corner as the default value for that setting as it nearly always gives a crap result.

• 1
##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

Thanks for the reply, Smartavionics.  I find user-defined z-seams to also be difficult and sometimes unreliable unless you're dealing with a vertical-faced object and you place the seam on a consistent corner in the model. I welcome any advice you may have about using it.  For that feature, sometimes I have to guess or count little squares to figure out where Cura believes (155,105) is on the build plate.

The sharpest corner is a really awesome idea, and I think we could iterate it a bit further to make it even better at making decisions.

Thank you again.

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

When using the user-defined z-seam position, turn on the relative position option so that the x/y position of the z-seam hint location are relative to the centre of the part's bounding box. That also gives the obvious benefit that you can move the model around the build plate and the z-seam hint location moves with the model.

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

Confused, if you have drawn a square then surely by definition each corner will be as sharp as the other 3 and they will all be 90d. Or am I missing something obvious that is going to embarrass me😵

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)
2 minutes ago, yellowshark said:

Confused, if you have drawn a square then surely by definition each corner will be as sharp as the other 3 and they will all be 90d. Or am I missing something obvious that is going to embarrass me😵

Nope, what you say is true and that's really why the sharpest corner z-seam strategy doesn't make sense for models that have corners that cannot be distinguished by their sharpness. Where it is useful is for an object that has mostly smooth curves and also an edge that runs vertically up the model and that's where you want the z-seam to be because it will be best hidden.

• 2
##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

Thanks @smartavionics, that makes complete sense now🙂

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

Hi YellowShark,

Yeah, the whole initial problem occurred with a square because the existing algorithm for finding the sharpest corner doesnt' account for distance. So it will chase down that 0.01mm difference between the corners' sharpness angles.

Which is why I suggested an improved algorithm with a weighted decision making that also accounts for the distance required for getting to that sharpest corner.  Without it, it combs or retracts like crazy to find that 90d corner on the other side of the model rather than the 85d corner that is 3mm away.

The point of confusion was probably the hypothetical which I used to illustrate how an improved weighted decision algorithm would function.  Didn't use a square in that hypothetical.  I probably should've added a TLDR.

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

Hi Sean, I take you point but do not understand why that corner would be 85d rather than 90d. Are you saying that Cura does not slice 90d corners correctly? Or of course your modelling software.

##### Share on other sites

Posted · Sharpest Corner Z-Seam Setting (Problem and Suggestion)

No, I'm saying the Sharpest Corner Z-Seam feature could be more intelligent with how it chooses where to start the layer.

## Create an account

Register a new account

• ### Our picks

• The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.

So what’s new?
The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.

The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.

The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.

The UltiMaker S7 also includes quality of life improvements:
Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more
Curious to see the S7 in action?
We’re hosting a free tech demo on February 7.
It will be live and you can ask any questions to our CTO, Miguel Calvo.
Register here for the Webinar
• 11 replies
• Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm

We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.
• 17 replies
• Hi,

Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.
They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access.