Click here to Skip to main content
15,893,588 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionApproximating a function over multiple points Pin
Maverick8925-Jun-09 8:10
Maverick8925-Jun-09 8:10 
AnswerRe: Approximating a function over multiple points Pin
harold aptroot25-Jun-09 8:17
harold aptroot25-Jun-09 8:17 
GeneralRe: Approximating a function over multiple points Pin
Maverick8925-Jun-09 8:34
Maverick8925-Jun-09 8:34 
GeneralRe: Approximating a function over multiple points Pin
harold aptroot25-Jun-09 8:46
harold aptroot25-Jun-09 8:46 
GeneralRe: Approximating a function over multiple points Pin
molesworth25-Jun-09 23:19
molesworth25-Jun-09 23:19 
AnswerRe: Approximating a function over multiple points Pin
Tim Craig25-Jun-09 8:26
Tim Craig25-Jun-09 8:26 
QuestionFind the centerline of a font glyph boundary Pin
Jason Titcomb22-Jun-09 8:57
Jason Titcomb22-Jun-09 8:57 
AnswerRe: Find the centerline of a font glyph boundary Pin
supercat923-Jun-09 9:13
supercat923-Jun-09 9:13 
I've sometimes wondered this very thing myself, and done some experiments, but unfortunately the shape I suspect you're after isn't really well defined.

One approach I used to generate a bitmap of the "skeleton" was to draw text repeatedly using increasing stroke widths, adding to the skeleton any island of pixels which disappeared from one iteration to the next. This was slow, but it somewhat worked; the results were used to generate an HPGL file for an engraving machine (the goal was to engrave the entire interiors of letters, but I wanted the engraver to follow the contours of the letters so the tooling marks would look good).

One slight caveat is that for decent results it's necessary to draw the fonts using miter joins, but some fonts have acute angles which look very bad (the joins either stick out way too far, or else they're converted to bevel joins which are way too short). This can be fixed somewhat by adding a very short extra stroke to acute joins, perpendicular to the bisector of the two lines being joined. This will generate a bevel whose distance from the intersection will be half the stroke width.
QuestionDiagram layout algorithm? Pin
Ashish Kaila20-Jun-09 9:41
Ashish Kaila20-Jun-09 9:41 
AnswerRe: Diagram layout algorithm? Pin
Arash Partow22-Jun-09 12:52
Arash Partow22-Jun-09 12:52 
QuestionDijkstra restriction Pin
TerRO_GirL15-Jun-09 2:07
TerRO_GirL15-Jun-09 2:07 
AnswerRe: Dijkstra restriction Pin
markalter19-Jun-09 1:33
markalter19-Jun-09 1:33 
GeneralAdvertisment Pin
Eddy Vluggen19-Jun-09 3:01
professionalEddy Vluggen19-Jun-09 3:01 
QuestionSwarm Destruction Pin
Daniel P31-May-09 16:26
Daniel P31-May-09 16:26 
AnswerRe: Swarm Destruction Pin
Alan Balkany1-Jun-09 5:03
Alan Balkany1-Jun-09 5:03 
GeneralRe: Swarm Destruction Pin
emilioarp21-Jul-09 10:43
emilioarp21-Jul-09 10:43 
QuestionHow to find the boundary of the complex connecting area Pin
anzhiyue31-May-09 15:57
anzhiyue31-May-09 15:57 
Questionhow to know a file just copy to some path in HDD ? [modified] Pin
xingselex29-May-09 0:52
xingselex29-May-09 0:52 
AnswerRe: how to know a file just copy to some path in HDD ? Pin
Eddy Vluggen30-May-09 1:43
professionalEddy Vluggen30-May-09 1:43 
GeneralRe: how to know a file just copy to some path in HDD ? Pin
xingselex30-May-09 5:26
xingselex30-May-09 5:26 
GeneralRe: how to know a file just copy to some path in HDD ? Pin
Eddy Vluggen30-May-09 9:00
professionalEddy Vluggen30-May-09 9:00 
GeneralIraq-born teen cracks maths puzzle Pin
Bassam Abdul-Baki28-May-09 8:02
professionalBassam Abdul-Baki28-May-09 8:02 
GeneralRe: Iraq-born teen cracks maths puzzle Pin
73Zeppelin28-May-09 8:30
73Zeppelin28-May-09 8:30 
GeneralRe: Iraq-born teen cracks maths puzzle Pin
User 171649228-May-09 8:56
professionalUser 171649228-May-09 8:56 
GeneralRe: Iraq-born teen cracks maths puzzle Pin
Bassam Abdul-Baki28-May-09 9:13
professionalBassam Abdul-Baki28-May-09 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.