Yarn Intersection Issue

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
myapa2
Regular
Posts: 21
Joined: Mon Apr 16, 2018 5:35 pm

Yarn Intersection Issue

Post by myapa2 »

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?
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Yarn Intersection Issue

Post by louisepb »

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
myapa2
Regular
Posts: 21
Joined: Mon Apr 16, 2018 5:35 pm

Re: Yarn Intersection Issue

Post by myapa2 »

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
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Yarn Intersection Issue

Post by louisepb »

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
myapa2
Regular
Posts: 21
Joined: Mon Apr 16, 2018 5:35 pm

Re: Yarn Intersection Issue

Post by myapa2 »

Hi,
Great!! Thanks for the help! :) :)
Post Reply