2018-06-05 11:15 AM - last edited on 2022-09-26 10:57 PM by Daniel Kassai
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
Solved! Go to Solution.
2018-06-20 05:00 AM
!!!! group lowergroup !!!! for nSide = 1 to nTransformedPoly !!!! if segmentCutFlag[nSide] then !!!! _cutangle = segmentCutAngle[nSide] !!!! else !!!! _cutangle = 0 !!!! if segmentContinueFlag[nSide] then !!!! if segmentSideFlag[nSide] = SIDE_END then _cutangle = _cutright !!!! if segmentSideFlag[nSide] = SIDE_START then _cutangle = _cutleft !!!! endif !!!! endif !!!! put transformedPoly[nSide][1], transformedPoly[nSide][2], !!!! _cutangle, transformedPoly[nSide][TRPOLY_STATUS], _matPanel !!!! next nSide !!!! !!!! cprism_{2} _matPanel, _matPanel, _matPanel, !!!! nTransformedPoly, ac_panelThickness / 2, !!!! get(nsp - 2), -1, _matPanel !!!! gosub "flushBuffer" !!!! endgroup !!!! !!!! group uppergroup !!!! for nSide = 1 to nTransformedPoly !!!! if segmentCutFlag[nSide] then !!!! _cutangle = segmentCutAngle[nSide] !!!! else !!!! _cutangle = 0 !!!! if segmentContinueFlag[nSide] then !!!! if segmentSideFlag[nSide] = SIDE_END then _cutangle = _cutright !!!! if segmentSideFlag[nSide] = SIDE_START then _cutangle = _cutleft !!!! endif !!!! endif !!!! put transformedPoly[nSide][1], transformedPoly[nSide][2], ! [nSide][3] should be all the same !!!! -_cutangle, transformedPoly[nSide][TRPOLY_STATUS], _matPanel !!!! next nSide !!!! !!!! addz ac_panelThickness !!!! mulz -1 !!!! cprism_{2} _matPanel, _matPanel, _matPanel, !!!! nTransformedPoly, ac_panelThickness / 2, !!!! get(nsp - 2), -1, _matPanel !!!! gosub "flushBuffer" !!!! del 2 !!!! endgroupDirectly after that add this ...
!!!The geometry for all the corner points horiz_panel = (transformedPoly[2][1]-transformedPoly[1][1])*COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) vert_panel = (transformedPoly[3][2]-transformedPoly[2][2])/COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) end_rise = (transformedPoly[2][1]-transformedPoly[1][1])*SIN(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) cross_angle = ATN((vert_panel+end_rise)/horiz_panel) panel_cross_angle_1 = cross_angle-panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] cross_x_rad_1 = (rail_hgt*0.5)/SIN(panel_cross_angle_1) cross_y_rad_1 = (rail_hgt*0.5)/SIN(90-panel_cross_angle_1-panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) y_reduction_1 = cross_y_rad_1-(cross_y_rad_1*COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE])) if panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] <> 0 then x_reduction_1 = y_reduction_1/TAN(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]*0.5) else x_reduction_1 = 0 endif panel_cross_angle_2 = ATN((vert_panel-end_rise)/horiz_panel)+panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] cross_x_rad_2 = (rail_hgt*0.5)/SIN(panel_cross_angle_2) cross_y_rad_2 = (rail_hgt*0.5)/COS(panel_cross_angle_2-panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) y_reduction_2 = cross_y_rad_2-(cross_y_rad_2*COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE])) if panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] <> 0 then x_reduction_2 = y_reduction_2/TAN(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]*0.5) else x_reduction_2 = 0 endif group lowergroup put transformedPoly[1][1], transformedPoly[1][2], 0, 15, _matPanel put transformedPoly[1][1]+cross_x_rad_1, transformedPoly[1][2], 0, 15, _matPanel put transformedPoly[3][1]-x_reduction_1, transformedPoly[3][2]-cross_y_rad_1+y_reduction_1, 0, 15, _matPanel put transformedPoly[3][1], transformedPoly[3][2], 0, 15, _matPanel put transformedPoly[3][1]-cross_x_rad_1, transformedPoly[3][2], 0, 15, _matPanel put transformedPoly[1][1]+x_reduction_1, transformedPoly[1][2]+cross_y_rad_1-y_reduction_1, 0, 15, _matPanel put transformedPoly[1][1], transformedPoly[1][2], 0, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1]+x_reduction_2, transformedPoly[2][2]+cross_y_rad_2-y_reduction_2, 0, 15, _matPanel put transformedPoly[4][1]+cross_x_rad_2, transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1], transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1]-x_reduction_2, transformedPoly[4][2]-cross_y_rad_2+y_reduction_2, 0, 15, _matPanel put transformedPoly[2][1]-cross_x_rad_2, transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" endgroup group uppergroup addz ac_panelThickness mulz -1 put transformedPoly[1][1], transformedPoly[1][2], _cutangle, 15, _matPanel put transformedPoly[1][1]+cross_x_rad_1, transformedPoly[1][2], _cutangle, 15, _matPanel put transformedPoly[3][1]-x_reduction_1, transformedPoly[3][2]-cross_y_rad_1+y_reduction_1, _cutangle, 15, _matPanel put transformedPoly[3][1], transformedPoly[3][2], _cutangle, 15, _matPanel put transformedPoly[3][1]-cross_x_rad_1, transformedPoly[3][2], _cutangle, 15, _matPanel put transformedPoly[1][1]+x_reduction_1, transformedPoly[1][2]+cross_y_rad_1-y_reduction_1, _cutangle, 15, _matPanel put transformedPoly[1][1], transformedPoly[1][2], _cutangle, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1]+x_reduction_2, transformedPoly[2][2]+cross_y_rad_2-y_reduction_2, 0, 15, _matPanel put transformedPoly[4][1]+cross_x_rad_2, transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1], transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1]-x_reduction_2, transformedPoly[4][2]-cross_y_rad_2+y_reduction_2, 0, 15, _matPanel put transformedPoly[2][1]-cross_x_rad_2, transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" del 2 endgroup
!!!! _yCurr = _pageStartY + 37 !!!! ui_infield{3} ac_panelThickness, _x2, _yCurr, _infWidth, _infHeightThen add ...
_yCurr = _pageStartY + 37 ui_infield{3} ac_panelThickness, _x2, _yCurr, _infWidth, _infHeight UI_TOOLTIP "Rail Width" ui_infield{3} rail_hgt, 380, 130, 50, _infHeight UI_TOOLTIP "Rail Height"
2018-06-12 10:45 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2018-06-17 10:55 AM
2018-06-18 05:04 AM
2018-06-18 09:25 AM
2018-06-20 04:42 AM
2018-06-20 05:00 AM
!!!! group lowergroup !!!! for nSide = 1 to nTransformedPoly !!!! if segmentCutFlag[nSide] then !!!! _cutangle = segmentCutAngle[nSide] !!!! else !!!! _cutangle = 0 !!!! if segmentContinueFlag[nSide] then !!!! if segmentSideFlag[nSide] = SIDE_END then _cutangle = _cutright !!!! if segmentSideFlag[nSide] = SIDE_START then _cutangle = _cutleft !!!! endif !!!! endif !!!! put transformedPoly[nSide][1], transformedPoly[nSide][2], !!!! _cutangle, transformedPoly[nSide][TRPOLY_STATUS], _matPanel !!!! next nSide !!!! !!!! cprism_{2} _matPanel, _matPanel, _matPanel, !!!! nTransformedPoly, ac_panelThickness / 2, !!!! get(nsp - 2), -1, _matPanel !!!! gosub "flushBuffer" !!!! endgroup !!!! !!!! group uppergroup !!!! for nSide = 1 to nTransformedPoly !!!! if segmentCutFlag[nSide] then !!!! _cutangle = segmentCutAngle[nSide] !!!! else !!!! _cutangle = 0 !!!! if segmentContinueFlag[nSide] then !!!! if segmentSideFlag[nSide] = SIDE_END then _cutangle = _cutright !!!! if segmentSideFlag[nSide] = SIDE_START then _cutangle = _cutleft !!!! endif !!!! endif !!!! put transformedPoly[nSide][1], transformedPoly[nSide][2], ! [nSide][3] should be all the same !!!! -_cutangle, transformedPoly[nSide][TRPOLY_STATUS], _matPanel !!!! next nSide !!!! !!!! addz ac_panelThickness !!!! mulz -1 !!!! cprism_{2} _matPanel, _matPanel, _matPanel, !!!! nTransformedPoly, ac_panelThickness / 2, !!!! get(nsp - 2), -1, _matPanel !!!! gosub "flushBuffer" !!!! del 2 !!!! endgroupDirectly after that add this ...
!!!The geometry for all the corner points horiz_panel = (transformedPoly[2][1]-transformedPoly[1][1])*COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) vert_panel = (transformedPoly[3][2]-transformedPoly[2][2])/COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) end_rise = (transformedPoly[2][1]-transformedPoly[1][1])*SIN(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) cross_angle = ATN((vert_panel+end_rise)/horiz_panel) panel_cross_angle_1 = cross_angle-panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] cross_x_rad_1 = (rail_hgt*0.5)/SIN(panel_cross_angle_1) cross_y_rad_1 = (rail_hgt*0.5)/SIN(90-panel_cross_angle_1-panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) y_reduction_1 = cross_y_rad_1-(cross_y_rad_1*COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE])) if panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] <> 0 then x_reduction_1 = y_reduction_1/TAN(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]*0.5) else x_reduction_1 = 0 endif panel_cross_angle_2 = ATN((vert_panel-end_rise)/horiz_panel)+panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] cross_x_rad_2 = (rail_hgt*0.5)/SIN(panel_cross_angle_2) cross_y_rad_2 = (rail_hgt*0.5)/COS(panel_cross_angle_2-panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]) y_reduction_2 = cross_y_rad_2-(cross_y_rad_2*COS(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE])) if panelSegmentData[iSegment][SEGMENT_SLOPEANGLE] <> 0 then x_reduction_2 = y_reduction_2/TAN(panelSegmentData[iSegment][SEGMENT_SLOPEANGLE]*0.5) else x_reduction_2 = 0 endif group lowergroup put transformedPoly[1][1], transformedPoly[1][2], 0, 15, _matPanel put transformedPoly[1][1]+cross_x_rad_1, transformedPoly[1][2], 0, 15, _matPanel put transformedPoly[3][1]-x_reduction_1, transformedPoly[3][2]-cross_y_rad_1+y_reduction_1, 0, 15, _matPanel put transformedPoly[3][1], transformedPoly[3][2], 0, 15, _matPanel put transformedPoly[3][1]-cross_x_rad_1, transformedPoly[3][2], 0, 15, _matPanel put transformedPoly[1][1]+x_reduction_1, transformedPoly[1][2]+cross_y_rad_1-y_reduction_1, 0, 15, _matPanel put transformedPoly[1][1], transformedPoly[1][2], 0, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1]+x_reduction_2, transformedPoly[2][2]+cross_y_rad_2-y_reduction_2, 0, 15, _matPanel put transformedPoly[4][1]+cross_x_rad_2, transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1], transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1]-x_reduction_2, transformedPoly[4][2]-cross_y_rad_2+y_reduction_2, 0, 15, _matPanel put transformedPoly[2][1]-cross_x_rad_2, transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" endgroup group uppergroup addz ac_panelThickness mulz -1 put transformedPoly[1][1], transformedPoly[1][2], _cutangle, 15, _matPanel put transformedPoly[1][1]+cross_x_rad_1, transformedPoly[1][2], _cutangle, 15, _matPanel put transformedPoly[3][1]-x_reduction_1, transformedPoly[3][2]-cross_y_rad_1+y_reduction_1, _cutangle, 15, _matPanel put transformedPoly[3][1], transformedPoly[3][2], _cutangle, 15, _matPanel put transformedPoly[3][1]-cross_x_rad_1, transformedPoly[3][2], _cutangle, 15, _matPanel put transformedPoly[1][1]+x_reduction_1, transformedPoly[1][2]+cross_y_rad_1-y_reduction_1, _cutangle, 15, _matPanel put transformedPoly[1][1], transformedPoly[1][2], _cutangle, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1]+x_reduction_2, transformedPoly[2][2]+cross_y_rad_2-y_reduction_2, 0, 15, _matPanel put transformedPoly[4][1]+cross_x_rad_2, transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1], transformedPoly[4][2], 0, 15, _matPanel put transformedPoly[4][1]-x_reduction_2, transformedPoly[4][2]-cross_y_rad_2+y_reduction_2, 0, 15, _matPanel put transformedPoly[2][1]-cross_x_rad_2, transformedPoly[2][2], 0, 15, _matPanel put transformedPoly[2][1], transformedPoly[2][2], 0, 15, _matPanel cprism_{2} _matPanel, _matPanel, _matPanel, 7, ac_panelThickness / 2, get(nsp - 2), -1, _matPanel gosub "flushBuffer" del 2 endgroup
!!!! _yCurr = _pageStartY + 37 !!!! ui_infield{3} ac_panelThickness, _x2, _yCurr, _infWidth, _infHeightThen add ...
_yCurr = _pageStartY + 37 ui_infield{3} ac_panelThickness, _x2, _yCurr, _infWidth, _infHeight UI_TOOLTIP "Rail Width" ui_infield{3} rail_hgt, 380, 130, 50, _infHeight UI_TOOLTIP "Rail Height"
2018-06-22 06:07 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2018-06-26 10:26 AM
In the parameter script find these line starting at line 62 and comment them out._yCurr = _pageStartY + 37 ui_infield{3} ac_panelThickness, _x2, _yCurr, _infWidth, _infHeight
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2018-06-26 03:05 PM