基本信息
源码名称:C#Voronoi实例源码
源码大小:0.36M
文件格式:.rar
开发语言:C#
更新时间:2023-04-21
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍

C#Voronoi实例源码


本程序的实现采用C#面向对象语言实现,故数据结构的设计采用类的形式,具体有:

点:

    public class Site

    {

        public double x, y;

        public Site()

        { }

        public Site(double x, double y)

        {

            this.x = x;

            this.y = y;

        }

    }

边:

    public class Edge

    {

        public Site a, b;

        public Edge(Site a, Site b)

        {

            this.a = a;

            this.b = b;

        }

}

三角形:

    public class DelaunayTriangle

    {

        Voronoi voronoi = new Voronoi();

        public Site site1, site2, site3;//三角形三点

        public Site centerPoint;//外界圆圆心

        public double radius;//外接圆半径

        public List<DelaunayTriangle> adjoinTriangle;//邻接三角形


        public DelaunayTriangle(Site site1,Site site2,Site site3)

        {

            centerPoint = new Site();

            this.site1 = site1;

            this.site2 = site2;

            this.site3 = site3;

            //构造外接圆圆心以及半径

            voronoi.circle_center(centerPoint, site1, site2,site3,ref radius);

        }

    }


.
├── Voronoi
│   ├── Voronoi实验报告.docx
│   ├── lvlv_voronoi.exe
│   └── my_voronoi
│       ├── lvlv_voronoi
│       │   ├── App.config
│       │   ├── Program.cs
│       │   ├── Properties
│       │   │   ├── AssemblyInfo.cs
│       │   │   ├── Resources.Designer.cs
│       │   │   ├── Resources.resx
│       │   │   ├── Settings.Designer.cs
│       │   │   └── Settings.settings
│       │   ├── Voronoi.cs
│       │   ├── VoronoiElements.cs
│       │   ├── VoronoiForm.Designer.cs
│       │   ├── VoronoiForm.cs
│       │   ├── VoronoiForm.resx
│       │   ├── bin
│       │   │   ├── Debug
│       │   │   │   ├── lvlv_voronoi.exe
│       │   │   │   ├── lvlv_voronoi.exe.config
│       │   │   │   ├── lvlv_voronoi.pdb
│       │   │   │   ├── lvlv_voronoi.vshost.exe
│       │   │   │   ├── lvlv_voronoi.vshost.exe.config
│       │   │   │   └── lvlv_voronoi.vshost.exe.manifest
│       │   │   └── Release
│       │   ├── lvlv_voronoi.csproj
│       │   └── obj
│       │       └── Debug
│       │           ├── DesignTimeResolveAssemblyReferences.cache
│       │           ├── DesignTimeResolveAssemblyReferencesInput.cache
│       │           ├── TempPE
│       │           ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│       │           ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│       │           ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│       │           ├── lvlv_voronoi.Properties.Resources.resources
│       │           ├── lvlv_voronoi.csproj.FileListAbsolute.txt
│       │           ├── lvlv_voronoi.csproj.GenerateResource.Cache
│       │           ├── lvlv_voronoi.csprojResolveAssemblyReference.cache
│       │           ├── lvlv_voronoi.exe
│       │           ├── lvlv_voronoi.pdb
│       │           └── lvlv_voronoi.voronoi.resources
│       ├── lvlv_voronoi.exe
│       ├── lvlv_voronoi.sln
│       └── lvlv_voronoi.v11.suo
└── 好例子网_Voronoi.rar

10 directories, 37 files