亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmopen.frm

?? 一個不錯的數控源碼是vb的
?? FRM
?? 第 1 頁 / 共 5 頁
字號:
                
            addToArray "cut_fast_arc_center " & ch1 & " " & ch2 & " " & cen1 & " " & cen2 & " " & angle & " )", InstructionSquence()
            
            Last.CX = p2.CX
            Last.CY = p2.CY
        End If
        
    Next i
    
    '尋校準點
    ch1 = 1
    ch2 = 2
    p = getCorrectPoint()
    pos1 = p.CX - Last.CX
    pos2 = p.CY - Last.CY
    addToArray "find_fast_line2 " & ch1 & " " & pos1 & " " & ch2 & " " & pos2 & " ", InstructionSquence()
    Last.CX = Last.CX + pos1
    Last.CY = Last.CY + pos2
    
    '拔出
    ch = 3
    step = -depth
    addToArray "fast_pmove " & ch & " " & step & " ", InstructionSquence()

End Sub
'#############################################################################
'按層處理圖形的表面
Private Sub dealSurface(layer As Long)
    
    Dim i As Long
    
    For i = LBound(EntityArray) To UBound(EntityArray)
            
        '處理實體的邊緣
        If EntityArray(i).ELayer = layer Then
            
            Select Case EntityArray(i).EName
            
                Case "CIRCLE"
                    generateCircleSurfaceInstruction EntityArray(i)
                    
                Case "LWPOLYLINE"
                    generateLwpolylineSurfaceInstruction EntityArray(i)
                    
                Case Else:
                    MsgBox "閉合曲線中包含無法識別的實體類型,詳見幫助文檔"

            End Select
        
        End If
      
    Next i
    
    
End Sub
'#############################################################################
'產生處理圓表面指令
Private Sub generateCircleSurfaceInstruction(circleEntity As EntityType)

    Dim layer As Long
    Dim depth As Double
    Dim p As CoordType                  '圓心坐標
    Dim angle As Double
    Dim radius As Double
    
    Dim ch As Long
    Dim ch1 As Long
    Dim ch2 As Long
    Dim step As Double
    Dim cen1 As Double
    Dim cen2 As Double
    Dim pos1 As Double
    Dim pos2 As Double
    
    '"CIRCLE", p, depth, radius
    
    layer = circleEntity.ELayer
    
    depth = circleEntity.EDepth + standHigh
        
    p = circleEntity.ECoord(0)
    radius = circleEntity.EConvex(0)
    
    '尋點
    ch1 = 1
    ch2 = 2
    pos1 = p.CX - radius - Last.CX
    pos2 = p.CY - Last.CY
    addToArray "find_fast_line2 " & ch1 & " " & pos1 & " " & ch2 & " " & pos2 & " ", InstructionSquence()
    Last.CX = Last.CX + pos1
    Last.CY = Last.CY + pos2
        
    '插入
    ch = 3
    step = depth
    addToArray "fast_pmove " & ch & " " & step & " ", InstructionSquence()
        
    '向內進行掃底
    ch1 = 1
    ch2 = 2
    cen1 = p.CX - Last.CX
    cen2 = p.CY - Last.CY
    angle = 360
        
    addToArray "cut_fast_arc_center " & ch1 & " " & ch2 & " " & cen1 & " " & cen2 & " " & angle & " )", InstructionSquence()
    radius = radius - cutterWidth
        
    Do While radius >= 0
        pos1 = p.CX - radius - Last.CX
        pos2 = 0
        addToArray "wash_fast_line2 " & ch1 & " " & pos1 & " " & ch2 & " " & pos2 & " ", InstructionSquence()
        Last.CX = Last.CX + pos1
        Last.CY = Last.CY + pos2            'last.cy沒有被修改
        cen1 = p.CX - Last.CX
        cen2 = p.CY - Last.CY
        angle = 360
        addToArray "wash_fast_arc_center " & ch1 & " " & ch2 & " " & cen1 & " " & cen2 & " " & angle & " )", InstructionSquence()
        radius = radius - cutterWidth
    Loop
    
    '拔出
    ch = 3
    step = -depth
    addToArray "fast_pmove " & ch & " " & step & " ", InstructionSquence()
        
End Sub

Private Sub generateLwpolylineSurfaceInstruction(lwpolylineEntity As EntityType)
    
    Dim i As Long
    
    Dim theScanner() As ScannerType   '每一層都有這樣一個掃描器
    Dim scanLine As LineType          '掃描線
    Dim scanTimes As Long              '有效的掃描次數
    scanLine.LB = 0.03
    scanLine.LK = 0
    
    Dim continueFlag As Boolean
    continueFlag = True
    Dim contactFlag As Boolean        '是否已經掃描到
    contactFlag = False
    Dim tempScanner As ScannerType
        
    While continueFlag = True
    
        continueFlag = False
    
        ReDim Preserve theScanner(scanTimes) As ScannerType
    
        arrayLines = 0
            
        tempScanner = scanLwpolyline(lwpolylineEntity, scanLine)
            
        '如果沒有掃空
        If tempScanner.SAvailab Then
                
            '把這行掃描后得到的點序通過掃描器傳給theScanner數組
            addPointSquenceToArray tempScanner.SSquence(), theScanner(scanTimes).SSquence()
                
            '置接觸標志contactFlag為True
            contactFlag = True
            continueFlag = True
            
               theScanner(0).SDepth = lwpolylineEntity.EDepth
        Else
                    
            '如果已經掃描到多線段實體,而后掃空
            If contactFlag = True Then
                continueFlag = False
            Else
                continueFlag = True
            End If
                    
        End If
            
        
        If contactFlag = True Then scanTimes = scanTimes + 1
        
        scanLine.LB = scanLine.LB + cutterWidth - cutterWidth / 3.1
        
    Wend
    
    ReDim Preserve theScanner(scanTimes - 2)
        
    '產生這條多線段的指令
    theScanner(0).SLayer = lwpolylineEntity.ELayer
    generateInstructionOfThisLwpolyline theScanner()
    
    
    '下面的代碼用于調試
    '''''''''''''''''''''''''''''''''''''''''''''''''
    For i = 0 To UBound(theScanner)
        sortPointSquence theScanner(i).SSquence()
    Next i
    
    Dim j As Long
    
    For i = 0 To UBound(theScanner)
        
        For j = 0 To UBound(theScanner(i).SSquence)
            
            List1.AddItem (theScanner(i).SSquence(j).CX & "   " & theScanner(i).SSquence(j).CY)
            
        Next j
        
        List1.AddItem ("  ")
        
    Next i
    ''''''''''''''''''''''''''''''''''''''''''''''''''
    
End Sub
'#############################################################################
'用Ln掃描多線段實體theLwpolyline,得到這一行的一個掃描器





'這一段渴望得到優化











Private Function scanLwpolyline(theLwpolyline As EntityType, ln As LineType) As ScannerType

    Dim certainLine As LineType
    Dim certainArc As ArcType
    
    Dim p1 As CoordType
    Dim p2 As CoordType
    
    Dim tempCoord As CoordType
    
    Dim i As Long
    Dim j As Long
    Dim eleNum As Long
    eleNum = theLwpolyline.EPnum
    Dim temp As Variant
        
    Dim pointCount As Long
    pointCount = 0

    
    For i = 0 To eleNum - 1             '按點序切
    
        p1 = theLwpolyline.ECoord(i)
            
        If i < eleNum - 1 Then          '未到達最后一點
            p2 = theLwpolyline.ECoord(i + 1)
        Else                          '到達最后一點
            p2 = theLwpolyline.ECoord(0)
        End If
            
        If theLwpolyline.EConvex(i) = 0 Then  '凸度為0,這一點與下一點間為直線
            
            certainLine = getLine(p1, p2)
            
            tempCoord = getLine_LineIntersection(certainLine, ln)
            
            If tempCoord.CX <> -1 Then
            
                ReDim Preserve scanLwpolyline.SSquence(pointCount) As CoordType
                scanLwpolyline.SSquence(pointCount) = tempCoord
                
                '下面的三行用于調試
                Dim a As Double
                a = tempCoord.CX
                a = tempCoord.CY
                
                scanLwpolyline.SAvailab = True
                pointCount = pointCount + 1
            End If
            
        Else                                    '凸度不為0,這一點與下點間為弧
        
            certainArc = getArc(theLwpolyline, i)
            
            temp = getLine_ArcIntersection(ln, certainArc)
            
            For j = 0 To UBound(temp) - 1
            
                If temp(0) <> -1 Then
                    ReDim Preserve scanLwpolyline.SSquence(pointCount) As CoordType
                    scanLwpolyline.SSquence(pointCount).CX = temp(j)
                    scanLwpolyline.SSquence(pointCount).CY = temp(j + 1)
                    scanLwpolyline.SAvailab = True
                    pointCount = pointCount + 1
                End If
                
            Next j
                
            
        End If
        
    Next i

End Function
'#############################################################################
'在表面處理中,產生這條多線段的指令
Private Sub generateInstructionOfThisLwpolyline(thisScanner() As ScannerType)

    Dim i As Long
    Dim j As Long
    Dim pNum As Long                   '每一行掃描線掃取的點數
    Dim nextpNum As Long
    Dim p1 As CoordType
    Dim p2 As CoordType
    Dim depth As Double
    If cutWay = 1 Then
        depth = thisScanner(0).SDepth + standHigh
    Else
        depth = thisScanner(0).SDepth / 2# + standHigh
    End If
    Dim pos1 As Double
    Dim pos2 As Double
    Dim ch As Long
    Dim ch1 As Long
    Dim ch2 As Long
    Dim step As Double
    
    For i = 0 To UBound(thisScanner)
        sortPointSquence thisScanner(i).SSquence()
    Next i
    
    For i = 0 To UBound(thisScanner)
    
        pNum = UBound(thisScanner(i).SSquence) + 1
        
        If i Mod 2 = 0 Then
            p1 = thisScanner(i).SSquence(0)
        Else
            p1 = thisScanner(i).SSquence(pNum - 1)
        End If
    
        '尋點
        ch1 = 1
        ch2 = 2
        pos1 = p1.CX - Last.CX
        pos2 = p1.CY - Last.CY
        addToArray "find_fast_line2 " & ch1 & " " & pos1 & " " & ch2 & " " & pos2 & " ", InstructionSquence()
        Last.CX = Last.CX + pos1
        Last.CY = Last.CY + pos2
                        
        If i = 0 Then
            '插入
            ch = 3
            step = depth
            addToArray "fast_pmove " & ch & " " & step & " ", InstructionSquence()
        End If
        
        If i Mod 2 = 0 Then     '當切至偶數行時
                                                        
            For j = 0 To pNum / 2 - 1
            
                p1 = thisScanner(i).SSquence(2 * j)
                p2 = thisScanner(i).SSquence(2 * j + 1)
                
                '畫線
                ch1 = 1
                ch2 = 2
                pos1 = p2.CX - p1.CX
                pos2 = p2.CY - p1.CY
                addToArray "wash_fast_line2 " & ch1 & " " & pos1 & " " & ch2 & " " & pos2 & " ", InstructionSquence()
                Last.CX = Last.CX + pos1
                Last.CY = Last.CY + pos2
                
                If j Mod 2 = 0 And j <> pNum / 2 - 1 Then
                    
                    '拔出
                    ch = 3
                    step = -depth
                    addToArray "fast_pmove " & ch & " " & step & " ", InstructionSquence()
            
                    '挪刀
                    p1 = thisScanner(i).SSquence(2 * j + 1)
                    p2 = thisScanner(i).SSquence(2 * j + 2)
                    pos1 = p2.CX - p1.CX
                    pos2 = p2.CY - p1.CY
                    addToArray "find_fast_line2 " & ch1 & " " & pos1 & " " & ch2 & " " & pos2 & " ", InstructionSquence()
                    Last.CX = Last.CX + pos1
                    Last.CY = Last.CY + pos2
                
                    '插入
                    ch = 3
                    step = depth
                    addToArray "fast_pmove " & ch & " " & step & " ", InstructionSquence()
                    
                End If
                
                
            Next j
            

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99re视频这里只有精品| 国产精品乡下勾搭老头1| 99精品久久99久久久久| 国产精品欧美久久久久一区二区| 国产成人精品1024| 国产精品国产三级国产普通话99 | 国产精品久久久久9999吃药| 国产福利一区在线| 中文字幕精品在线不卡| 99久久综合精品| 亚洲九九爱视频| 欧美午夜精品久久久久久孕妇| 亚洲国产另类av| 日韩一二三区不卡| 国产寡妇亲子伦一区二区| 国产精品久久福利| 欧美色综合网站| 久久国产精品99精品国产| 久久综合99re88久久爱| 成人黄色777网| 日韩成人精品视频| 欧美刺激午夜性久久久久久久| 久久99精品久久久久久久久久久久| 欧美日韩二区三区| 国产乱国产乱300精品| 亚洲乱码中文字幕| 欧美精品色一区二区三区| 国产剧情av麻豆香蕉精品| 日韩美女久久久| 日韩美女视频在线| 99re成人在线| 美女在线视频一区| 自拍偷拍亚洲激情| 日韩久久免费av| 91福利在线观看| 国产精品一区二区果冻传媒| 亚洲精品国产一区二区精华液| 日韩视频一区在线观看| 99免费精品在线| 国产在线视频精品一区| 亚洲欧洲制服丝袜| 欧美精品一区二区在线播放| 一本大道综合伊人精品热热| 久久成人免费电影| 香蕉影视欧美成人| 国产精品理论片| 精品国产一区二区在线观看| 色爱区综合激月婷婷| 国产精品自拍av| 青青国产91久久久久久| 亚洲天堂免费在线观看视频| 精品国产伦理网| 欧美日本一道本| 成人国产精品免费观看动漫| 免费精品视频最新在线| 亚洲国产人成综合网站| 国产精品色噜噜| 久久久精品人体av艺术| 91精品国产色综合久久| 欧美综合久久久| 99re在线精品| 成人不卡免费av| 成人午夜视频在线观看| 国产在线不卡一卡二卡三卡四卡| 亚洲h动漫在线| 夜夜亚洲天天久久| 亚洲男人天堂av| 国产精品国产三级国产aⅴ入口| 26uuu精品一区二区在线观看| 91精品麻豆日日躁夜夜躁| 欧美亚洲图片小说| 色播五月激情综合网| 一本一道久久a久久精品综合蜜臀| 粉嫩欧美一区二区三区高清影视| 美女爽到高潮91| 日本美女视频一区二区| 婷婷夜色潮精品综合在线| 亚洲第一主播视频| 五月天一区二区三区| 五月天久久比比资源色| 亚洲精品欧美综合四区| 亚洲精品中文字幕在线观看| 国产精品传媒在线| **欧美大码日韩| 亚洲免费毛片网站| 夜夜嗨av一区二区三区网页| 亚洲精品水蜜桃| 一二三区精品福利视频| 亚洲gay无套男同| 美女网站一区二区| 国产一区二区三区综合| 国产不卡一区视频| 成人高清伦理免费影院在线观看| gogo大胆日本视频一区| 91九色最新地址| 欧美日韩免费一区二区三区| 欧美猛男超大videosgay| 91精品国产综合久久福利软件| 欧美一级xxx| 久久精品亚洲麻豆av一区二区| 国产欧美一区二区三区网站 | 日韩精品三区四区| 黄色成人免费在线| 成人sese在线| 在线日韩一区二区| 日韩一区二区三区视频在线观看| 精品88久久久久88久久久 | 国产精品美女久久久久aⅴ国产馆| 国产精品乱人伦| 亚洲自拍偷拍网站| 久久精品久久99精品久久| 成人午夜激情影院| 欧美手机在线视频| 久久影院午夜论| 一区二区三区视频在线观看| 热久久一区二区| 国产成人精品在线看| 91女神在线视频| 日韩欧美亚洲一区二区| 国产精品伦理一区二区| 香蕉久久夜色精品国产使用方法| 国产在线一区二区| 欧美亚洲日本国产| 国产欧美日韩在线| 亚洲一区二区3| 国产91在线|亚洲| 欧美日韩不卡一区| 国产精品久久一级| 久久国产综合精品| 色久优优欧美色久优优| 精品国产乱码久久久久久久久| 自拍偷拍亚洲欧美日韩| 久久精品免费看| 欧美视频在线观看一区| 国产肉丝袜一区二区| 日韩av电影一区| 91蝌蚪porny| 久久精品人人做人人综合| 午夜成人在线视频| 色欧美日韩亚洲| 国产精品乱码久久久久久| 另类小说综合欧美亚洲| 欧美欧美午夜aⅴ在线观看| 亚洲欧美日韩在线播放| 国产中文字幕精品| 制服丝袜日韩国产| 亚洲午夜在线视频| 色视频欧美一区二区三区| 国产精品乱人伦一区二区| 国产一区二区三区蝌蚪| 69堂国产成人免费视频| 亚洲国产精品综合小说图片区| 99精品久久99久久久久| 国产精品毛片无遮挡高清| 国产一区不卡视频| 欧美电影免费提供在线观看| 午夜久久久影院| 欧美男女性生活在线直播观看| 亚洲丝袜制服诱惑| 白白色亚洲国产精品| 中国色在线观看另类| 国产激情一区二区三区四区| 精品国产成人系列| 激情五月激情综合网| 91精品国产乱码久久蜜臀| 亚洲电影你懂得| 欧美日韩精品是欧美日韩精品| 最新国产成人在线观看| 成人毛片老司机大片| 国产精品美女久久久久久久久 | 日韩你懂的在线播放| 亚洲电影在线免费观看| 欧美亚洲免费在线一区| 亚洲国产精品一区二区www| 欧美亚洲动漫精品| 亚洲午夜国产一区99re久久| 欧美色男人天堂| 天堂资源在线中文精品| 5566中文字幕一区二区电影| 日本午夜一本久久久综合| 69p69国产精品| 美脚の诱脚舐め脚责91| 精品精品欲导航| 国产成人免费在线观看不卡| 国产农村妇女毛片精品久久麻豆 | 久久久精品黄色| 国产69精品久久久久毛片| 国产精品美女久久久久久久久| 成人免费观看av| 一区二区欧美在线观看| 欧美日韩亚洲综合| 蜜臀av在线播放一区二区三区| 久久人人爽人人爽| av一区二区久久| 亚洲国产精品精华液网站| 欧美一区二区三区四区视频 | 久久久久久久综合日本| 成人激情电影免费在线观看| 亚洲精品伦理在线| 欧美一级欧美三级在线观看|