Unable to build slave nodes

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
fstig
Regular
Posts: 14
Joined: Thu Apr 24, 2008 7:09 am
Location: Gothenburg, Sweden
Contact:

Unable to build slave nodes

Post by fstig »

Hi again!

I have now encountered a problem that most probably has a trivial solution but I can't seem to solve it.

Aim: Build a geometry model of a 3D weave were the yarns have plenty of crimp in all directions.

Main problem: The interpolation between the different yarn-sections are not smooth and contain "discontinuities". That is probably the wrong word but I hope you understand what I mean.

Possible cause: The error message i get says
Unable to build slave nodes, not enough master nodes specified

Unable to calculate slave node resolution
This is how I define the cross-sections. Yarn is of Class CYarn, no is just the Yarn number. In the vector YarnInfoVec is data about position and cross-section. YarnSections is the vector is and object of CYarnSEctionInterpNode.

Code: Select all

 
def YarnFunc(Yarn,no,YarnInfoVec,yarnSections):
 Yarn[no].AddNode(CNode(XYZ(YarnInfoVec[0],YarnInfoVec[1],YarnInfoVec[2])))
 section = CSectionPowerEllipse(YarnInfoVec[3],YarnInfoVec[4], YarnInfoVec[6])
 section = CSectionRotated(section, YarnInfoVec[5]*pi/180)
 yarnSections.AddSection(section)

Any ideas?

Cheers
/
Fredrik
Researcher RISE
joncrookston
Expert User
Posts: 27
Joined: Wed Apr 11, 2007 4:03 pm
Location: Nottingham, UK

Post by joncrookston »

Hi Fredrik,

I can't be sure, but you might find something useful in:
/TexGen/Core/YarnSectionInterp.cpp
and related files. I think there are a couple of ways to specify the interpolation between sections.

Your error message seems to come from line 368 of /TexGen/Core/Yarn.cpp, so you might want to have a look around there too.

Hope this helps. Cheers!
Jon.
fstig
Regular
Posts: 14
Joined: Thu Apr 24, 2008 7:09 am
Location: Gothenburg, Sweden
Contact:

Post by fstig »

Hi Jon,
Thank you, I have solved the problem.
Cheers
Fredrik
Researcher RISE
Post Reply