| | Re: Sticker Generator for LDRAW / MLCAD
|
|
(...) If you can work out regions of identical colour I believe there is a theory that says you can fill it with no more than 2N (where N is the number of corners) triangles. This is probably a good way of doing it for complex shapes. If I ever get (...) (17 years ago, 25-Jul-07, to lugnet.cad)
|
|
| | Re: Sticker Generator for LDRAW / MLCAD
|
|
Sorry that it has taken me so long. In fact, I am still working on creating quadrilaterals and triangles to fill the largest spaces possible. My main hang-ups are: reducing processing time a working point-in-polygon test I have found two different (...) (17 years ago, 26-Jul-07, to lugnet.cad)
|
|
| | Re: Sticker Generator for LDRAW / MLCAD
|
|
(...) There is C code for a point in polygon implementation here: (URL) only 8 lines of code for the whole thing, but it supports arbitrary polygons, including ones with holes. UNDERSTANDING the algorithm might take a little work, but the page (...) (17 years ago, 26-Jul-07, to lugnet.cad)
|
|
| | Re: Sticker Generator for LDRAW / MLCAD
|
|
(...) Wow, I can't believe I only just found this thread! txt2dat uses Jonathan Richard Shewchuk's Triangle library to triangulate polygons generated by Truetype fonts. All you need to do is supply a list of verteces, and it will generate the (...) (17 years ago, 6-Oct-07, to lugnet.cad)
|