91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

利用三角形生長法快速形成三角網,界面良好,有基本注釋。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Collections;
using?System.Drawing.Drawing2D;

namespace?TIN
{
????public?partial?class?Form1?:?Form
????{
????????private?static?Bitmap?bitmap?=?null;?//?創建bitmap對象???
????????private?Graphics?g?=null;??//為graphics對象賦予值
????????private?Pen?pen?=?new?Pen(Color.Red?1);
????????private?Brush?brush?=?Brushes.Red;
????????private?ArrayList?list?=null;
????????private?ArrayList?linelist?=?null;
????????private?Bitmap?huanyuanbitmap?=?null;
???????
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????Initialize_drawingboard();
????????}
???????
????????//用余弦定理求三個點夾角,cenPoint為頂點。
????????public?float?Angle(Point?cenPoint?Point?firstPoint?Point?secondPoint)
????????{
????????????float?dx1?dx2?dy1?dy2;
????????????float?angle;
????????????dx1?=?firstPoint.X?-?cenPoint.X;
????????????dy1?=?firstPoint.Y?-?cenPoint.Y;
????????????dx2?=?secondPoint.X?-?cenPoint.X;
????????????dy2?=?secondPoint.Y?-?cenPoint.Y;
????????????float?c?=?(float)Math.Sqrt(dx1?*?dx1?+?dy1?*?dy1)?*?(float)Math.Sqrt(dx2?*?dx2?+?dy2?*?dy2);
????????????if?(c?==?0)?return?-1;
????????????angle?=?(float)Math.Acos((dx1?*?dx2?+?dy1?*?dy2)?/?c);
????????????return?angle;
????????}
????????
????????//兩點距離。
????????public?double?Distance(Point?firstNum?Point?secondNum)
????????{
????????????double?dis?=?Math.Sqrt((secondNum.Y?-?firstNum.Y)?*?(secondNum.Y?-?firstNum.Y)
?????????????????????????????????????+?(secondNum.X?-?firstNum.X)?*?(secondNum.X?-?firstNum.X));
????????????return?dis;
????????}

????????private?void?creatTIN_Btn_Click(object?sender?EventArgs?e)
????????{
????????????Initialize_Bitmap();
????????????this.pictureBox1.Update();
????????????creatTIN();
????????}
????????
????????/*運用矢量判斷點在一條有明確起始方向的線的左還是右;令矢量的起點為A,終點為B,判斷的點為C,???
????????如果S(A,B,C)為正數,則C在矢量AB的左側;???
????????如果S(A,B,C)為負數,則C在矢量AB的右側;???
????????如果S(A,B,C)為0,則C在直線AB上。*/
????????public?int?JudgeLOrR(Point?cenPoint?Point?firstPoint?Point?secondPoint)
????{
????????double?s;
????????s?=?(firstPoint.X?-?cenPoint.X)?*?(secondPoint.Y?-?cenPoint.Y)?-?(firstPoint.Y?-?cenPoint.Y)?*?(secondPoint.X?-?cenPoint.X);
????????if?(s?>?0)
????????{
????????????return?1;
????????}
????????else?if?(s?????????????return?2;
????????else
????????????return?0;
????}
??????
????????private?void?pictureBox1_MouseMove(object?sender?MouseEventArgs?e)
????????{
????????????this.position_label.Visible?=?true;
????????????this.position_label.Text?=?e.X.ToString()?+?““?+?e.Y.ToString();
????????????
????????}

????????private?void?pictureBox1_MouseLeave(object?sender?EventArgs?e)
????????{
????????????this.position_label.Visible?=?false;
???

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-20?21:44??生長法生成TIN\
?????目錄???????????0??2013-06-20?21:39??生長法生成TIN\TIN\
?????文件???????27648??2013-06-20?21:12??生長法生成TIN\TIN.suo
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\bin\
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\bin\Debug\
?????文件???????32256??2013-06-20?16:39??生長法生成TIN\TIN\bin\Debug\TIN.pdb
?????文件?????????490??2010-03-17?22:39??生長法生成TIN\TIN\bin\Debug\TIN.vshost.exe.manifest
?????文件???????13824??2013-06-20?21:09??生長法生成TIN\TIN\bin\Debug\TIN生成器.exe
?????文件???????32256??2013-06-20?21:09??生長法生成TIN\TIN\bin\Debug\TIN生成器.pdb
?????文件???????11600??2013-06-20?21:40??生長法生成TIN\TIN\bin\Debug\TIN生成器.vshost.exe
?????文件?????????490??2010-03-17?22:39??生長法生成TIN\TIN\bin\Debug\TIN生成器.vshost.exe.manifest
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\bin\Release\
?????文件????????9910??2013-06-20?21:08??生長法生成TIN\TIN\Form1.cs
?????文件????????6554??2013-06-20?21:05??生長法生成TIN\TIN\Form1.Designer.cs
?????文件????????5817??2013-06-20?20:16??生長法生成TIN\TIN\Form1.resx
?????文件?????????205??2013-06-20?21:08??生長法生成TIN\TIN\Line.cs
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\obj\
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\obj\x86\
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\obj\x86\Debug\
?????文件????????4440??2013-06-20?16:43??生長法生成TIN\TIN\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????6362??2013-06-20?21:24??生長法生成TIN\TIN\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件?????????316??2013-06-20?21:08??生長法生成TIN\TIN\obj\x86\Debug\GenerateResource.read.1.tlog
?????文件?????????714??2013-06-20?21:08??生長法生成TIN\TIN\obj\x86\Debug\GenerateResource.write.1.tlog
?????目錄???????????0??2013-06-20?21:38??生長法生成TIN\TIN\obj\x86\Debug\TempPE\
?????文件????????1902??2013-06-20?16:39??生長法生成TIN\TIN\obj\x86\Debug\TIN.csproj.FileListAbsolute.txt
?????文件???????12800??2013-06-20?16:39??生長法生成TIN\TIN\obj\x86\Debug\TIN.exe
?????文件?????????180??2013-06-20?21:08??生長法生成TIN\TIN\obj\x86\Debug\TIN.Form1.resources
?????文件???????32256??2013-06-20?16:39??生長法生成TIN\TIN\obj\x86\Debug\TIN.pdb
?????文件?????????180??2013-06-20?21:08??生長法生成TIN\TIN\obj\x86\Debug\TIN.Properties.Resources.resources
?????文件????????1372??2013-06-20?21:40??生長法生成TIN\TIN\obj\x86\Debug\TIN生成器(生長法).csproj.FileListAbsolute.txt
?????文件????????1132??2013-06-20?21:08??生長法生成TIN\TIN\obj\x86\Debug\TIN生成器.csproj.FileListAbsolute.txt
............此處省略12個文件信息

評論

共有 條評論