Jump to content

Cura 5.5 Plugin CuraEngine_plugin_infill_generate


Cuq
Go to solution Solved by Cuq,

Recommended Posts

Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate
18 hours ago, Slashee_the_Cow said:

/me immediately starts using cows as infill

Genuinely curious of the results, or if they end up an udder disaster 

  • Link to post
    Share on other sites

    Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate
    22 minutes ago, Cuq said:

    Christmas Tree decoration

     

    image.thumb.png.a5e8acc19cd351f69e67d713da10e148.png

    Stop stealing all the possible cow ideas! I like my work to be original.

     

    Also, question that I should have realised before: how the sweet gooey chocolate fudge do I make a .wtk file? I don't think I've even heard of that.

  • Link to post
    Share on other sites

    • Solution
    Posted (edited) · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    Ctrl+C

    Ctrl+V

    Rename 

     

    EDIT...  and test

     

    That's all I can say. Or ask the author ( @JelleSpijker) of this plugin. There is no documentation on this point.

     

    The only instruction comes from the readme file :

     

    You can create your own infill tills by adding *.wtk files in the CuraEngineTiledInfill/tiles/ folder even when you already installed it in Cura...

     

    EDIT 

     

    In my case there are two lines ,

     I suppose the first defines the hexagon envelope ... the second the geometry of the filling (Note according to my test the First polygon definition is  mendatory and the geometry definition is not used to define the infill lines :


    e.g. for the cow's head:

    POLYGON ((866 2000, 1732 1500, 1732 500, 866 0, 0 500, 0 1500))
    POLYGON ((0 1045 ,170 1023 ,256 1020 ,335 1031 ,414 1081 ,349 1099 ....

     

    I use Excel to represent the model (in orange the outer polygon, in blue the infill lines) and then I'll write the validated points in the POLYGON instruction (X Y coordinate pair separated by a comma).

     

    image.thumb.png.3176c37707d89a7acc9f98ce392cc614.png

     

    You can also use the code :  LINESTRING (866 2000, 1732 500)

     

    or MULTILINESTRING ((1834 404, 1834 1595), (866 0, 166 404, 166 1595, 866 2000))

     

    In this case the model is not closed.

     

    EDIT EDIT : Pattern Name

     

    The name of the Wtk file will used to add a new Infill Pattern. If you use the underscore as a character then the pattern name will replace this character with a space and the first letter of the following word will be capitalized. Ie head_cow.wtk  -> Head Cow

     

    image.png.b6814b071d1515a55f68dae22bc02e3f.png

     

    EDIT EDIT EDIT

     

    For the size of the model , I started with the Honeycomb example  :

    POLYGON ((866 2000, 1732 1500, 1732 500, 866 0, 0 500, 0 1500, 866 2000))

     

    I don't know what unit is used and whether these values can be reduced or increased. As it worked, I kept this model as a starting point.

     

    EDIT EDIT EDIT EDIT

     

    The definition of the first polygon doesn't seem to matter . The pattern is created from the bounding box of the lines. So it's only useful if you want to define a margin around your pattern. In this case, the size will be adjusted to this first polygon.  (To be confirmed)

     

    image.thumb.png.7734d8d039cc34c25c7a123d148b9da5.png

     

    in the second example the polygon representing the cow is the same and the first definition is a very small polygon:

    POLYGON ((0 0, 0 1, 1 1, 1 0))

     

    This must also give an answer to the unit used, the model will certainly be adjusted, so there's obviously no need to respect a starting size (still to be confirmed).

     

     

    To be completed ....

    Edited by Cuq
    • Like 3
    • Heart 1
    Link to post
    Share on other sites

    Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    Yeah, I just did what I should have done in the first place and actually opened up one of the files. Could clearly see that it was a text-based vector format, just one whose syntax didn't resemble anything I know.

     

    I'm not saying that I've occasionally hand-coded an entire SVG (although I'm not saying I haven't, either) but yeah, I get the idea and managed to look up the syntax (the file extension is deceiving). Although you can continue the lecture for the rest of the class if you want to.

  • Link to post
    Share on other sites

    Posted (edited) · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    I love these new tiles @cuq!

    Certainly these first tiles would make excellent new additions, I made a FR request for you to consider adding these to the plugin for the next minor release: 
    https://github.com/Ultimaker/CuraEngine_plugin_infill_generate/issues/8 

    On a side note I'm planning on adding some rudimentary SVG support, but that will probably be a hobby weekend PR and I'm not sure when I have the time for that.

    Edited by JelleSpijker
  • Link to post
    Share on other sites

    Posted (edited) · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    Weird that hardly nobody knows the WKT files which stands for, and I kid you not: Well Known Text representation

    https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry 

    We only use a small subset of that format tho: https://github.com/Ultimaker/CuraEngine_plugin_infill_generate/blob/aaeebbd3c2c795184e94b404c46941c94739bb5e/include/infill/content_reader.h#L30

    - LINESTRING
    - MULTILINESTRING
    - POLYGON

    Edited by JelleSpijker
    • Heart 1
    Link to post
    Share on other sites

    Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate
    7 minutes ago, JelleSpijker said:

    Weird that hardly nobody knows the WKT files which stands for, and I kid you not: Well Known Text representation

    https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry 

    We only use a small subset of that format tho: https://github.com/Ultimaker/CuraEngine_plugin_infill_generate/blob/aaeebbd3c2c795184e94b404c46941c94739bb5e/include/infill/content_reader.h#L30

    - LINESTRING
    - MULTILINESTRING
    - POLYGON

     

    Never heard of it, but interesting to know that it's in an ISO standard. :

    image.thumb.png.dba8a383b1a8636da84ebb81f2d3393d.png

  • Link to post
    Share on other sites

    Posted (edited) · Cura 5.5 Plugin CuraEngine_plugin_infill_generate
    48 minutes ago, JelleSpijker said:

    On a side note I'm planning on adding some rudimentary SVG support, but that will probably be a hobby weekend PR and I'm not sure when I have the time for that.

     

    Maybe it's not so urgent after all, now that we know the WKT format is a standard format. Google becomes your friend ...  https://betravis.github.io/shape-tools/path-to-polygon/  

    Converts my SVG file directly to WKT.   

    Settings :

    Units : None

    Precision : 0

     

    Then a copy and past.

     

    image.thumb.png.87da4b5664c75793dcdc82e0f2894b88.png

    Edited by Cuq
    • Heart 1
    Link to post
    Share on other sites

    Posted (edited) · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    The prefect example to convert snowflake  just need to convert from SVG to POLYGON via  https://betravis.github.io/shape-tools/path-to-polygon/  

    image.thumb.png.0df3515f231cbb44a19a71fd198c215f.png

     

    Then Add a first dummy line :

    POLYGON ((0 0, 1 0, 1 1, 0 1))

     

    And  we have :

     

    image.png

    snowflakes.zip

     

    Svg original file and wtk file

    Edited by Cuq
  • Link to post
    Share on other sites

    Posted (edited) · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    Nice then I might focus on adding rotation to the individual tiles and grouped tiles to generate even more complex infill patterns.

     

    I believe I have a working branch open.

    Edited by JelleSpijker
  • Link to post
    Share on other sites

    Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    Could someone tell me where the tiles files on MacOS are stored ? I cannot find the place.

     

    Thanks.

  • Link to post
    Share on other sites

    Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    In the configuration folder (see Help -> Show configuration folder...), go to plugins/CuraEngineTiledInfill/CuraEngineTiledInfill/tiles

  • 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...