Click here to Skip to main content
15,914,416 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 7:49
muttleychess1-Sep-16 7:49 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 8:43
mveGerry Schmitz1-Sep-16 8:43 
QuestionConsesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 1:40
Member 1270735628-Aug-16 1:40 
AnswerRe: Consesus algorithms Raft and Paxos comparison question Pin
Richard MacCutchan28-Aug-16 1:45
mveRichard MacCutchan28-Aug-16 1:45 
GeneralRe: Consesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 3:14
Member 1270735628-Aug-16 3:14 
QuestionTranslating this flowchart into pseudocode Pin
Ambus Dondon26-Aug-16 18:47
Ambus Dondon26-Aug-16 18:47 
AnswerRe: Translating this flowchart into pseudocode Pin
Peter_in_278026-Aug-16 21:56
professionalPeter_in_278026-Aug-16 21:56 
GeneralRe: Translating this flowchart into pseudocode Pin
Ambus Dondon27-Aug-16 1:13
Ambus Dondon27-Aug-16 1:13 
SuggestionRe: Translating this flowchart into pseudocode Pin
enhzflep27-Aug-16 1:48
enhzflep27-Aug-16 1:48 
GeneralRe: Translating this flowchart into pseudocode Pin
Ambus Dondon27-Aug-16 2:15
Ambus Dondon27-Aug-16 2:15 
GeneralRe: Translating this flowchart into pseudocode Pin
enhzflep27-Aug-16 4:11
enhzflep27-Aug-16 4:11 
AnswerRe: Translating this flowchart into pseudocode Pin
Patrice T27-Aug-16 4:53
mvePatrice T27-Aug-16 4:53 
GeneralRe: Translating this flowchart into pseudocode Pin
Ambus Dondon27-Aug-16 14:27
Ambus Dondon27-Aug-16 14:27 
QuestionData Structures and Algorithm Pin
Chayan Mehta26-Aug-16 5:21
Chayan Mehta26-Aug-16 5:21 
AnswerRe: Data Structures and Algorithm Pin
Richard Deeming26-Aug-16 5:41
mveRichard Deeming26-Aug-16 5:41 
AnswerRe: Data Structures and Algorithm Pin
Beginner Luck30-Aug-16 17:56
professionalBeginner Luck30-Aug-16 17:56 
QuestionHow to do Ray and Triangle-Edge Intersect/Picking? Pin
Farhad Reza7-Aug-16 3:45
Farhad Reza7-Aug-16 3:45 
AnswerRe: How to do Ray and Triangle-Edge Intersect/Picking? Pin
Kenneth Haugland10-Aug-16 5:55
mvaKenneth Haugland10-Aug-16 5:55 
AnswerRe: How to do Ray and Triangle-Edge Intersect/Picking? Pin
patbob18-Aug-16 11:57
patbob18-Aug-16 11:57 
I'm not sure I understand the ray part, but since you're talking 3D, I'd look for the intersection of the mesh parts with a sphere centered on the mouse click location -- point (vertex) contained in sphere, line segment (edge) fully or partially contained in sphere, etc. This means you'll need to keep track of the cursor location in three dimensions and map the actual mouse gestures on the screen to somehow moving that 3D cursor.

This is pretty standard math for any 3D rendering or 3D game, so you might see if you can find a library that already implements the heavy lifting for you. If you roll your own, there's tons of resources for this sort of math, but I often found myself at the Wolfram reference site.

If your mesh is big, performance will be pretty slow. I think a lot of the 3D editors do the voxel thing so they can check only a subset for each event.
We can program with only 1's, but if all you've got are zeros, you've got nothing.

GeneralRe: How to do Ray and Triangle-Edge Intersect/Picking? Pin
Farhad Reza18-Aug-16 23:38
Farhad Reza18-Aug-16 23:38 
GeneralRe: How to do Ray and Triangle-Edge Intersect/Picking? Pin
patbob19-Aug-16 5:50
patbob19-Aug-16 5:50 
QuestionPackage Calculations for Shipping, do you see room for improvement Pin
jkirkerx4-Aug-16 9:26
professionaljkirkerx4-Aug-16 9:26 
SuggestionRe: Package Calculations for Shipping, do you see room for improvement Pin
Richard Deeming4-Aug-16 10:29
mveRichard Deeming4-Aug-16 10:29 
GeneralRe: Package Calculations for Shipping, do you see room for improvement Pin
jkirkerx4-Aug-16 12:10
professionaljkirkerx4-Aug-16 12:10 
GeneralRe: Package Calculations for Shipping, do you see room for improvement Pin
Slacker00710-Aug-16 3:35
professionalSlacker00710-Aug-16 3:35 

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.