马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
- Public Sub DrawScreenRectangle(ByVal Pt1 As Point3d, ByVal Pt2 As Point3d, Optional ByVal icolor As Integer = 1, Optional ByVal bHighLighted As Boolean = False)
- Dim MinX As Double = Math.Min(Pt1.X, Pt2.X)
- Dim MaxX As Double = Math.Max(Pt1.X, Pt2.X)
- Dim MinY As Double = Math.Min(Pt1.Y, Pt2.Y)
- Dim MaxY As Double = Math.Max(Pt1.Y, Pt2.Y)
- If MaxX > MinX AndAlso MaxY > MinY Then
- Doc.Editor.DrawVector(New Point3d(MinX, MinY, 0), New Point3d(MaxX, MinY, 0), icolor, bHighLighted)
- Doc.Editor.DrawVector(New Point3d(MaxX, MinY, 0), New Point3d(MaxX, MaxY, 0), icolor, bHighLighted)
- Doc.Editor.DrawVector(New Point3d(MaxX, MaxY, 0), New Point3d(MinX, MaxY, 0), icolor, bHighLighted)
- Doc.Editor.DrawVector(New Point3d(MinX, MaxY, 0), New Point3d(MinX, MinY, 0), icolor, bHighLighted)
- End If
- End Sub
|