goal length of spacebands different between GUI and recipe?
|Opened on:||Sunday, January 21, 2018 - 06:27|
|Last modified:||Wednesday, January 24, 2018 - 04:43|
I noticed this discrepancy while updating the wiki. Not sure if it's new or not.
When you manually draw a band from a segment to a point in space, the band has a goal length of zero. That's what shows up in the GUI when you adjust the "length" (really goal length). The function band.GetGoalLength also reports zero.
It's different for bands added with band.Add. These end up with goal length of 3.5, just like segment-to-segment bands.
I had thought that band.Add created zero-length bands, just like drawing them manually. But I see at least some recipes set the goal length of spacebands to get a zero-length band.
Can someone tell we whether it's always been this way?
The following code snippet illustrates what I'm talking about. You can add a spaceband manually before running the snippet to compare and contrast.
band.Add ( 2, 1, 3, 20, 0, 0 ) for ii = 1, band.GetCount () do print ( "band " .. ii .. ", length = " .. band.GetLength ( ii ) .. ", goal length = " .. band.GetGoalLength ( ii ) ) end