a branch of computer science devoted to the study of algorithms which can be stated in terms of geometry.
2
votes
1answer
41 views
recursive algorithm to obtain grid points inside a n-cube volume or surface
I did wrote in python two functions to return points in the n-dimensional cube of half size K (meaning that the coordinates along each axis go from -K,.. 0.. K). The n-dimensional cube volume should ...
1
vote
1answer
172 views
Ray-Triangle hit test [closed]
I'm trying to do a simple hit test on a triangle and return the first triangle hit. In my mesh class I have a public function which iterates through all the faces in the triangle, fetches their ...
7
votes
1answer
330 views
C# code to derive tangential points between two circles to create a trapezoid
These are the steps to determine coordinates of the 4 points (P1, P2, P3, P4) that make up a tangential trapezoid connecting to circles. Another way of looking at it is to think of the tangential ...
6
votes
1answer
156 views
Trying to implement a collection class to represent a Path of Segments
I've posted a few times over on stack.overflow recently and have been advised to try here to sort out a good code implementation once and for all.
I'm trying to implement a custom made 2D geometry ...
3
votes
1answer
112 views
Am I doing this ray reflection correctly?
I'm am trying to reflect a ray of a triangle using Processing and not sure I got the code right. I'm using two bits of pseudo code from two locations:
Intersection of a Line with a Plane from Paul ...
3
votes
3answers
233 views
Missed lab, wondering how this bit of Java code could be improved anyway?
I'm not able to get feedback on this because I forgot about the lab due date, but I'd appreciate some critique anyway. It takes in a user specified number of points then finds the two points with the ...
1
vote
2answers
134 views
Normal calculation for tile terrain geometry
What do you think about this one? Other than declaring an Epsilon constant, of couse.
It does generate pretty decent normals but I'm not sure if I could improve it even more without losing ...
2
votes
2answers
101 views
Building 3d geometry from tile description
This code is a mess due the complex nature of the job, so I'd like to know your opinions. The concept is very simple if you know what this is about, but there are some things I'm not being able to ...