Jump to content

Recommended Posts

Posted · Issue with Cura coordinate system

 

Hi everyone, 

 

I am currently involved in a research project aiming at developing an algorithm allowing to convert an stl file into a hybrid G-code file generating additive manufacturing and machining trajectories. This algorithm is implemented as a plugin in the open source Cura environment. Unfortunately, difficulties are encountered when it comes to adjusting additive and drilling tool paths.

In our algorithm, the STL file is first turned into an additive Gcode with Cura. Then the same STL file is sliced and an offset contour is generated on each layer and turned into Gcode commands. Finally additive and milling paths are combined into one single Gcode.

The main problem comes from this last step. Indeed, when the STL file is imported in Cura (first step) the center of its coordinate system seems to be modified in order to place the part in the middle of the bed. We don’t know what transformation is applied to the part. If you have any idea please contact us,

 

Thank you very much

 

Léo

  • Link to post
    Share on other sites

    Posted · Issue with Cura coordinate system

    You can try with : 

    node.getWorldTransformation().getData()

     

     

    But not sure you get what you want . In this case it's the Transformation comming from the 3mf file, With a Stl As you have notice it will gives you  :

     

    [1. 0. 0. 0.]
    [0. 1. 0. (height/2)]
    [0. 0. 1. 0.]
    [0. 0. 0. 1.]

     

     

     You can Also Try SuperSlicer As Free Source Code . It already integrate a Slicer + an integrated Function to generate the milling Toolpath

    image.thumb.png.358fc0d9947b7ac615f3b76f860436ec.png

     

    image.png.d0e7f748db1987ee25490e4f3465b738.png

     

    Again not exactly your request but a good start for this type of project with some interesting option like the milling_extra_size to add some material to the shape to be sure to get enough material to be milled .. 

     

  • Link to post
    Share on other sites

    Posted · Issue with Cura coordinate system

    Hi Cuq,

     

    Thank you for your very detailed answer.

     

    The  function

    node.getWorldTransformation().getData()

    has indeed return the matrix you showed us. Unfortunately it only correspond to the placement of the bottom of the part on the bed. 

     

    We tried to use the centroid and masscenter functions of trimesh in order to try to place the center of milling coordinate system at the same position as the one of the additive coordinate system. With no success. 

     

    When it comes to SuperSlicer, it is what we are trying to do in smaller proportions ^^

     

    Thank you very much,

     

    Léo

  • Link to post
    Share on other sites

    Posted · Issue with Cura coordinate system

    It sounds like you're having some difficulties with adjusting additive and drilling tool paths in your algorithm for converting STL files into G-code. It's possible that the center of the coordinate system is being modified when importing the STL file into Cura, but it's unclear what transformation is being applied.

  • Link to post
    Share on other sites

    Posted (edited) · Issue with Cura coordinate system

    For me there is no problem just a misunderstanding of the concept of origin and origin offset on CNC machine.  By using the origin setting in the center of the bed in Cura the problem should not exist. But since I still didn't really understand what was wrong with the Cura coordinate system question, maybe I have a wrong idea of the problem.

    Edited by Cuq
  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.9 stable released!
        Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements.  Check out the rest of this article to find out the details on all of that and more
          • Like
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Heart
          • Thanks
          • Like
        • 4 replies
    ×
    ×
    • Create New...