首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > segment-intersection

segment-intersection

  • 资源大小:824.62 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: segmentintersection

资 源 简 介

Project 1 - Line segment intersection The goal of the project is to be able to input line segments from the screen and a file, compute their intersections and to store them together with their intersections as a planar graph represented in a DCEL structure. A technical goal is to be able to handle DCEL"s. The running program should support the following operations. Be able to read a file containing a sequence of line segments. Each line should have the format: x1 y1 x2 y2 where (x1,y1) and (x2,y2) are the endpoints of the segment. Coordiantes are floating point numbers. Adding new line segments interactively by using the mouse. Intersections between segments are to be reported and visualized by small circles. Save the computed DCEL in a file. Restore a DCEL from a file. A running program implementing the sweep line algorithm in [BKOS, Chapter 2] and a report is expected. Cf. http://www.cs.au.dk/~gerth/cg10/project.ht

相 关 资 源

VIP VIP
0.229312s