Jump to content
nallath

Automatic orientation plugin

Recommended Posts

Posted · Automatic orientation plugin

I've finally found some time to make a quick wrapper for the excellent algorithm created by Christoph Schranz. It calculates the optimal orientation based on overhangs of the object.

Note that it's a quick & dirty implementation on my end, but it should do the trick.

You can find it on; https://github.com/nallath/CuraOrientationPlugin

It's supposed to work with Cura 2.3

  • Like 5

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

Very cool. Seems to be working fine on my end at least. Well, in so far as it re-orients parts to what looks like a good print direction at least. I took a couple of models that I had made, rotated them into an awkward orientation and let the plugin try and fix it. It rotated them back into the direction they were designed to be printed at, so it seems to be working :)

And for those wondering how to install. Click the green "Download or clone" button towards the top right, download as zip and drag the "CuraOrienationPlugin-master" folder into: "C:\Users\YourNameHere\AppData\Local\cura\plugins"

  • Like 2

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

Most of the credit goes to Christoph. I just made sure it worked with Cura. It only took me about ~2 ish hours to build.

  • Like 1

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

does this still work with 2.4 and 2.5 Beta?

 

Yep. Even works when running it from source. I use the plugin a lot myself, so it's almost guaranteed to work ;)

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

I asked, because with a lot of organic models I printed lately it doesn't do anything.

If I load a cube and rotate it on its point, it reacts as expected, but if I have an organic model and rotate it in a position where a lot of red shows it does nothing...

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

The algorithm is not stable. Hitting calculate optimal angle will reposition the model in a different orientation.

Also the starting angle will affect the resulting orientation.

I'm not talking about angle around the Z axis; the model can actually get different orientations around the X and Y axis.

http://www.thingiverse.com/thing:1906284/#files

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

Please make a shortcut in the rotation tool menu, so that you automatically bump into it when you are busy rotating the part yourself.

Also: when is this going to be shipped with Cura?

  • Like 1

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

I asked, because with a lot of organic models I printed lately it doesn't do anything.

If I load a cube and rotate it on its point, it reacts as expected, but if I have an organic model and rotate it in a position where a lot of red shows it does nothing...

 

Huh. Odd. Do you have an example of one of those models?

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

I had an older version installed, the most recent one fixed the problem...

works great!

  • Like 2

Share this post


Link to post
Share on other sites
Posted (edited) · Automatic orientation plugin

Hi @nallath, I am trying to use the auto-orient plugin in my CuraEngine source, executing from the command line. Not sure how could I integrate the plugin functionality in the engine.

Edited by Devang

Share this post


Link to post
Share on other sites
Posted · Automatic orientation plugin

It's not intended to be used without the front end. You could try and see if you can get the meshTweaker (my plugin wraps that) to work in command line.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Our picks

    • Ultimaker Cura 4.0 | Stable available!
      Ultimaker Cura 4.0 is mainly focused on the improved user interface and cloud integration.
      As always, we want to collect your user feedback for this release. If there are any improvements you can think of, feel free to mention it here and help us to shape the next release.
      • 83 replies
×
×
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!