Jump to content

Cura 5.5 Plugin CuraEngine_plugin_infill_generate


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

    Posted · Cura 5.5 Plugin CuraEngine_plugin_infill_generate

    Hi, do you need the plugin to add wkt files? The plugin is no longer available.. but can I just add another wkt pattern elsewhere? If so, can you please share the file location on windows

  • 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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Thanks
          • Like
        • 18 replies
    ×
    ×
    • Create New...