Yarn for a given path

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
ShuPeng
Posts: 3
Joined: Wed Jun 07, 2023 6:28 am

Yarn for a given path

Post by ShuPeng »

dear louisepb,
Now that I need to create a piece of yarn that can be generated in the path I gave, do I need to re-add an interpolation function?And How can I create a new interpolation function in TEXGEN?
Thanks.
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Yarn for a given path

Post by louisepb »

Hello,

If you have added nodes for a yarn in the user interface then you can change the interpolation function used as described here: https://texgen.sourceforge.net/index.ph ... erpolation
If you are writing a script then the interpolation function can be assigned in the script. The scripting guide is here: https://github.com/louisepb/TexGenScriptingGuide

To write a new interpolation function you would need to build that TexGen code and write a new class in the C++ code inheriting from the CInterpolation base class.

Hope that helps,
Louise
Post Reply