- 1
- Solution
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).
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
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)
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- 3
- 1
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.
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.
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
- 1
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. :
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.
Edited by Cuq
- 1
The prefect example to convert : snowflake just need to convert from SVG to POLYGON via : https://betravis.github.io/shape-tools/path-to-polygon/
Then Add a first dummy line :
POLYGON ((0 0, 1 0, 1 1, 0 1))
And we have :
Svg original file and wtk file
Edited by CuqNice 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- 1 month later...
Could someone tell me where the tiles files on MacOS are stored ? I cannot find the place.
Thanks.
In the configuration folder (see Help -> Show configuration folder...), go to plugins/CuraEngineTiledInfill/CuraEngineTiledInfill/tiles
- 7 months later...
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
Recommended Posts
Dustin 175
Genuinely curious of the results, or if they end up an udder disaster
Link to post
Share on other sites