Jump to content

Issue with Cura coordinate system


leotssr

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.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...