![](https://www.jinchutou.com/images/s.gif)
基于狄洛尼三角网生成算法的源代码
17页1、import java.util.*;import java.awt.*;public class MyEdge public static int count=0;public int id;private int begin;private int end;private int useCount;public MyEdge(int begin,int end)this.id=+count;this.begin=begin;this.end=end;this.useCount=0;public MyEdge(MyPoint begin,MyPoint end)this.id=+count;this.begin=begin.id;this.end=end.id;this.useCount=0;public int getUseCount()return this.useCount;public void addUseCount()this.useCount+;/* * 下面这两个方法是得到边的来个顶点 * 若集合中没有指定的对象则返回空值 */public MyPoint getBe
2、ginPoint(Map pointSet)MyPoint temp=pointSet.get(this.begin);return temp;public MyPoint getEndPoint(Map pointSet)MyPoint temp=pointSet.get(this.end);return temp;/* * 下面是根据两个点的ID,在边集中找寻两点组成的边 * 返回的是边对象 * 若没找到,则返回空 */public static MyEdge getEdge(int begin,int end,Map edgeSet)MyEdge temp=null;for(int i=1;i=edgeSet.size();i+)temp=edgeSet.get(i);if(temp.begin=begin&temp.end=end)break;return temp;/* * 下面是根据两个点对象,在边集中找寻两点组成的边 * 返回的是边对象 * 若没找到,则返回空 */public static MyEdge getEdge(MyPoint begin,MyPoint end
3、,Map edgeSet)MyEdge temp=null;for(int i=1;i=edgeSet.size();i+)temp=edgeSet.get(i);if(temp.begin=begin.id&temp.end=end.id)break;return temp;public void draw(Graphics g,Map pointSet)MyPoint begin=pointSet.get(this.begin);MyPoint end=pointSet.get(this.end);Color c=g.getColor();g.setColor(Color.blue);g.drawLine(begin.x, begin.y, end.x,end.y );g.setColor(c); /* * 下面这个方法是用来判断点在当前直线的左边还是右边 * 当然当前直线是有方向的 * 若点在直线的右边,则返回false * 否则返回true */public boolean isOnLeft(MyPoint p,Map pointSet)boolean flag=false;M
《基于狄洛尼三角网生成算法的源代码》由会员桔****分享,可在线阅读,更多相关《基于狄洛尼三角网生成算法的源代码》请在金锄头文库上搜索。
![公交公司年终工作总结](https://union.152files.goldhoe.com/2024-1/25/41550d40-e47d-4a68-b8ec-511fef29dce1/pic1.jpg)
公交公司年终工作总结
![施工组织设计(室内装饰工程).docx](https://union.152files.goldhoe.com/2022-12/29/ce42555c-4d3e-4675-8a24-7f3bfcef1303/pic1.jpg)
施工组织设计(室内装饰工程).docx
![真善美的小世界教学反思.docx](https://union.152files.goldhoe.com/2023-11/9/04491724-c26e-4392-8316-bafcd932be5a/pic1.jpg)
真善美的小世界教学反思.docx
![亲子运动自我鉴定](https://union.152files.goldhoe.com/2023-4/12/4870fa90-c03f-4067-aa33-52c6396b4c8d/pic1.jpg)
亲子运动自我鉴定
![高三老师评语](https://union.152files.goldhoe.com/2023-1/14/3afd677f-f4a9-4ba4-b1b5-36b8a5061dda/pic1.jpg)
高三老师评语
![高速公路监控施工组织设计.doc](https://union.152files.goldhoe.com/2023-7/18/10c75c6c-71fc-4862-a274-96dec425df32/pic1.jpg)
高速公路监控施工组织设计.doc
![T_CBWA 0006-2022 工业设备清洗单位资质评定.docx](https://union.152files.goldhoe.com/2022-8/8/8590dc33-f946-4a43-aff2-0489ffcafc9e/pic1.jpg)
T_CBWA 0006-2022 工业设备清洗单位资质评定.docx
![2023年保育员个人总结模板[5篇模版].docx](https://union.152files.goldhoe.com/2023-11/5/1e4ef554-b56b-4458-a56a-397e9ad46ed9/pic1.jpg)
2023年保育员个人总结模板[5篇模版].docx
![母亲节作文600字作文初二.docx](https://union.152files.goldhoe.com/2022-8/23/fd183c81-d30b-4c7f-92df-d8d587ce62d8/pic1.jpg)
母亲节作文600字作文初二.docx
![贵港市宏亚木业有限公司年产495万张胶合板、建筑模板项目环境影响报告表.doc](https://union.152files.goldhoe.com/2022-9/17/11e45819-1687-4b43-b93b-82309952c298/pic1.jpg)
贵港市宏亚木业有限公司年产495万张胶合板、建筑模板项目环境影响报告表.doc
![关于将来的演讲稿15篇](https://union.152files.goldhoe.com/2023-2/3/e9d2532f-1ef3-406d-881d-c2205db5b3e5/pic1.jpg)
关于将来的演讲稿15篇
![2023新学期二年级班主任工作计划(3篇).doc](https://union.152files.goldhoe.com/2022-11/27/0c5e5316-cbec-4ece-95a1-a77f5bb3bcb4/pic1.jpg)
2023新学期二年级班主任工作计划(3篇).doc
![保安年终个人工作总结范文.docx](https://union.152files.goldhoe.com/2023-2/17/a0ffa216-7ca9-4c36-bf32-c19e967e3f02/pic1.jpg)
保安年终个人工作总结范文.docx
![环保科技有限公司生产安全事故应急预案方案大全](https://union.152files.goldhoe.com/2022-8/29/70299b82-a11a-4f71-bfcd-4d9f085f1f2c/pic1.jpg)
环保科技有限公司生产安全事故应急预案方案大全
![设备设施供货保障方案](https://union.152files.goldhoe.com/2022-7/17/bcd268bf-c89c-4d94-81ec-825dc0add1c8/pic1.jpg)
设备设施供货保障方案
![某区迎接国家扶贫考核座谈会发言提纲新编.docx](https://union.152files.goldhoe.com/2023-10/30/01f7d3a8-3505-4fea-9f63-8d621a5fc088/pic1.jpg)
某区迎接国家扶贫考核座谈会发言提纲新编.docx
![幼儿园中班秋季工作计划.doc](https://union.152files.goldhoe.com/2023-1/19/9a2662f2-2162-4f92-9bf7-2e3becd40874/pic1.jpg)
幼儿园中班秋季工作计划.doc
![一体化生活净水处理系统操作维护说明书](https://union.152files.goldhoe.com/2023-2/16/72750876-2966-45e1-9530-d84173051258/pic1.jpg)
一体化生活净水处理系统操作维护说明书
![文字,太苍白 写不出那些记忆.doc](https://union.152files.goldhoe.com/2023-10/14/88fd89e7-fb95-4fdb-8b03-3187a9e9e39f/pic1.jpg)
文字,太苍白 写不出那些记忆.doc
![宾语从句,被动语态,定语从句.doc](https://union.152files.goldhoe.com/2023-5/13/cdddd0f9-f600-44da-94e2-954a6395123f/pic1.jpg)
宾语从句,被动语态,定语从句.doc
![2021年主题班会教案《永远跟党走》](/Images/s.gif)
2022-07-30 3页
![照明系统通电试运行调试方案](/Images/s.gif)
2022-09-29 5页
![土木工程毕业设计(论文)-郑州一中综合教学楼设计](/Images/s.gif)
2023-10-03 80页
![小学理科教研组工作计划](/Images/s.gif)
2022-11-04 4页
![(学术 论文) 徐睿 《汤姆叔叔的小屋》中圣徒形象人物解析.docx](/Images/s.gif)
2023-06-30 14页
![基于单片机的盗贼入侵报警系统的设计毕业设计说明书](/Images/s.gif)
2023-03-31 26页
![管理会计练题库.doc](/Images/s.gif)
2023-01-27 34页
![毕业论文-影响大学生无气力症候群的相关因素及对策研究](/Images/s.gif)
2024-02-18 12页
![市政工程实体质量检查表](/Images/s.gif)
2024-02-02 12页
![银行民主评议政风行风工作实施方案.doc](/Images/s.gif)
2023-11-18 4页