I'm trying to obtain the cubic coefficients of the interpolation function across three specific master nodes, is it possible? I couldn't seem to find it anywhere in the documentation.
Also, not sure if it's an issue with the Python version being installed, but I don't get the keyboard cursor at the Python Console. It inputs just fine, but I just can't see where I am inserting characters without the cursor. I'm using Windows 10 64-bit.
Loving TexGen by the way, it's an amazing tool!
Obtaining interpolation function
Moderators: Martin, Developers
Re: Obtaining interpolation function
Hi,
Glad you're finding TexGen useful. It would be great to hear more about how you're using it (this helps us with applying for funding to keep maintaining and developing it).
There isn't currently a function to access the coefficients for the cubic coefficients. If you've built the source code it should be possible to write an accessor function to be able to find these for a given node. The code is in the InterpolationCubic.cpp file and the coefficients are stored in the Cubics vector. Alternatively, again if you've built the code, a cheap and cheerful way would be to run in debug and look at the values stored in Cubics.
I'm aware of the cursor issue in the Python console but haven't had time to try and work out what the issue is (it hasn't become irritating enough yet for me to find the time to try and solve it!).
Hope that helps,
Louise
Glad you're finding TexGen useful. It would be great to hear more about how you're using it (this helps us with applying for funding to keep maintaining and developing it).
There isn't currently a function to access the coefficients for the cubic coefficients. If you've built the source code it should be possible to write an accessor function to be able to find these for a given node. The code is in the InterpolationCubic.cpp file and the coefficients are stored in the Cubics vector. Alternatively, again if you've built the code, a cheap and cheerful way would be to run in debug and look at the values stored in Cubics.
I'm aware of the cursor issue in the Python console but haven't had time to try and work out what the issue is (it hasn't become irritating enough yet for me to find the time to try and solve it!).
Hope that helps,
Louise
Re: Obtaining interpolation function
Dr. Brown,
Thank you so much for your response. Seeing as it's a work laptop I can't compile from source, but I just did a huge workaround and fit the interpolated nodes externally.
The cursor isn't a major issue, it was just annoying enough when I was debugging the node coordinate extrapolation.
I had another question: GetSlaveNodes() says it requires two arguments, but I could only input one e.g. yarn.GetSlaveNodes(0), and I don't know what the argument represents. I put a 0 just to be safe, but I tested it with other integers and the node coords values extracted were unaffected so I can't be sure of what it means.
Thank you so much for your response. Seeing as it's a work laptop I can't compile from source, but I just did a huge workaround and fit the interpolated nodes externally.
The cursor isn't a major issue, it was just annoying enough when I was debugging the node coordinate extrapolation.
I had another question: GetSlaveNodes() says it requires two arguments, but I could only input one e.g. yarn.GetSlaveNodes(0), and I don't know what the argument represents. I put a 0 just to be safe, but I tested it with other integers and the node coords values extracted were unaffected so I can't be sure of what it means.
Re: Obtaining interpolation function
Hi,
Here is the definition of the CYarn::GetSlaveNode function:
/// Get the slave nodes and build them if necessary
/**
\param Usage Specify what the slave nodes will be used for, this will determine what
type of build is performed (LINE, SURFACE or VOLUME). If only the position of the
slave nodes is required select LINE, if access to the slave node's sections is required
select SURFACE, if access to the slave node's section mesh is required select VOLUME.
*/
const vector<CSlaveNode> &GetSlaveNodes(BUILD_TYPE Usage) const;
If you pass a 0 parameter then the function won't rebuild the slave nodes so it will just return the previously calculated values. If you have made a change to the nodes and you want to just get the position of the slave nodes then, as described above, just send a value of 1 which is what LINE is defined as in the enum in the code.
Best wishes,
Louise
Here is the definition of the CYarn::GetSlaveNode function:
/// Get the slave nodes and build them if necessary
/**
\param Usage Specify what the slave nodes will be used for, this will determine what
type of build is performed (LINE, SURFACE or VOLUME). If only the position of the
slave nodes is required select LINE, if access to the slave node's sections is required
select SURFACE, if access to the slave node's section mesh is required select VOLUME.
*/
const vector<CSlaveNode> &GetSlaveNodes(BUILD_TYPE Usage) const;
If you pass a 0 parameter then the function won't rebuild the slave nodes so it will just return the previously calculated values. If you have made a change to the nodes and you want to just get the position of the slave nodes then, as described above, just send a value of 1 which is what LINE is defined as in the enum in the code.
Best wishes,
Louise