Yarn Intersection Issue
Moderators: Martin, Developers
Yarn Intersection Issue
Hello, I have been working with TexGen for a few months now. When I create a plain weave textile model through the wizard, it looks fine, but when I assign a different cross section, I can see that the yarns intersect. How can I avoid that?
Re: Yarn Intersection Issue
Hi,
If you are using the wizard with the refine option then TexGen automatically adjusts the yarn cross-sections to eliminate the intersections. If you change the cross-section then you will need to assign the cross-sections to a shape which avoids this, either for the whole yarn or locally. There are instruction in the user guide on how to do this using the GUI. Alternatively you can change them within a script by using the functions in the API. A scripting guide is available here: https://github.com/louisepb/TexGenScriptingGuide
Hope that helps,
Louise
If you are using the wizard with the refine option then TexGen automatically adjusts the yarn cross-sections to eliminate the intersections. If you change the cross-section then you will need to assign the cross-sections to a shape which avoids this, either for the whole yarn or locally. There are instruction in the user guide on how to do this using the GUI. Alternatively you can change them within a script by using the functions in the API. A scripting guide is available here: https://github.com/louisepb/TexGenScriptingGuide
Hope that helps,
Louise
Re: Yarn Intersection Issue
Hi,
Thanks a lot Louise for the quick reply. I'm still learning Texgen, there's so much still to study. I'll look into the documents you sent.
Would you say, scripting will give much more control over the geometry than the GUI?
Thanks
Thanks a lot Louise for the quick reply. I'm still learning Texgen, there's so much still to study. I'll look into the documents you sent.
Would you say, scripting will give much more control over the geometry than the GUI?
Thanks
Re: Yarn Intersection Issue
Hi,
Yes, it's easier to create complex textiles using a script than trying to do it in the GUI. Also, if you need to specify shapes for cross-section to avoid intersections using the polygon section this can only be done from a script.
Best wishes,
Louise
Yes, it's easier to create complex textiles using a script than trying to do it in the GUI. Also, if you need to specify shapes for cross-section to avoid intersections using the polygon section this can only be done from a script.
Best wishes,
Louise
Re: Yarn Intersection Issue
Hi,
Great!! Thanks for the help!

Great!! Thanks for the help!