简体   繁体   中英

2d space dividing by m lines

It has been years since I wrote any program... so I need your help and advice.

I looking for an general algorithm to solve following problem:

There is an flat (2d) space in form of rectangle, by given dimensions axb. Divide the space with given m- lines that takes given n-lengths. Lines can meet in nodes but can not be more lines in one node then given k.

Here there is an example http://i.stack.imgur.com/YzJ4a.png

在此处输入图片说明

let's assume that ie n2 is equal to another n2 etc -i know that on the picture is not exactly

maybe you can recommend literature that help me to solve that problem?

That is an Euclidean graph problem. In particular, that graph is a planar straight line graph.

http://en.wikipedia.org/wiki/Planar_straight_line_graph

If you are looking for literature, Computational Geometry: An Introduction by Preparata and Shamos may helps you.

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM