For each Section I defined the following Parameters:
- The xLocPercent is 1 (or very close to 1) in the last section, representing 100% of the total length.
- The lower_limit is the upper_limit of the section before (This is my way to set the length of each section)
Examples:
SetParmVal( fid, "Ellipse_Height", "XSecCurve_3", 0.865358 );
SetParmVal( fid, "Ellipse_Width", "XSecCurve_3", 1.016999 );
xsec = GetXSec( xsec_surf, 3 );
parmid_xloc = GetXSecParm( xsec, "XLocPercent" );
SetParmValLimits( parmid_xloc, 0.0044208283287032685, 0.0017705631337507413, 0.0044208283287032685 );
Update();
...
SetParmVal( fid, "Ellipse_Height", "XSecCurve_30", 4.15 );
SetParmVal( fid, "Ellipse_Width", "XSecCurve_30", 4.15 );
xsec = GetXSec( xsec_surf, 30 );
parmid_xloc = GetXSecParm( xsec, "XLocPercent" );
SetParmValLimits( parmid_xloc, 0.43768710767754826, 0.35378591260263514, 0.43768710767754826 );
parmid_zloc = GetXSecParm( xsec, "ZLocPercent" );
SetParmValLimits( parmid_zloc, -0.002599260622885924, -0.002599260622885924, -0.002599260622885924 );
Update();
SetParmVal( fid, "Ellipse_Height", "XSecCurve_31", 4.15 );
SetParmVal( fid, "Ellipse_Width", "XSecCurve_31", 4.15 );
xsec = GetXSec( xsec_surf, 31 );
parmid_xloc = GetXSecParm( xsec, "XLocPercent" );
SetParmValLimits( parmid_xloc, 0.5215883027524614, 0.43768710767754826, 0.5215883027524614 );
parmid_zloc = GetXSecParm( xsec, "ZLocPercent" );
SetParmValLimits( parmid_zloc, -0.002599260622885924, -0.002599260622885924, -0.002599260622885924 );
Update();
--
You received this message because you are subscribed to the Google Groups "OpenVSP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.