Click here to Skip to main content
15,890,897 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
AnswerRe: Package Calculations for Shipping, do you see room for improvement Pin
Gerry Schmitz5-Aug-16 4:57
mveGerry Schmitz5-Aug-16 4:57 
GeneralRe: Package Calculations for Shipping, do you see room for improvement Pin
jkirkerx5-Aug-16 6:45
professionaljkirkerx5-Aug-16 6:45 
AnswerI created a console app for those that want to play with it Pin
jkirkerx5-Aug-16 8:24
professionaljkirkerx5-Aug-16 8:24 
AnswerRe: Package Calculations for Shipping, do you see room for improvement Pin
ip-address10-Aug-16 2:21
ip-address10-Aug-16 2:21 
GeneralRe: Package Calculations for Shipping, do you see room for improvement Pin
jkirkerx10-Aug-16 6:55
professionaljkirkerx10-Aug-16 6:55 
QuestionCar Engine and Tire heat simulation (for games) Pin
_D4N23-May-17 3:58
_D4N23-May-17 3:58 
AnswerRe: Car Engine and Tire heat simulation (for games) Pin
Gerry Schmitz22-Jul-16 12:25
mveGerry Schmitz22-Jul-16 12:25 
AnswerRe: Car Engine and Tire heat simulation (for games) Pin
jkirkerx4-Aug-16 9:36
professionaljkirkerx4-Aug-16 9:36 
QuestionCan anybody help me with sourse code for quantum key distribution (QKD) written in any general language. Pin
Possible AC4-Jul-16 6:35
Possible AC4-Jul-16 6:35 
AnswerRe: Can anybody help me with sourse code for quantum key distribution (QKD) written in any general language. Pin
Richard MacCutchan4-Jul-16 6:41
mveRichard MacCutchan4-Jul-16 6:41 
AnswerRe: Can anybody help me with sourse code for quantum key distribution (QKD) written in any general language. Pin
Kimberly Weldon5-Jul-16 1:33
Kimberly Weldon5-Jul-16 1:33 

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.