sgTools Namespace Reference
Detailed Description
Tools namespace. Provides functionality for different often needed tasks.
Function Documentation
long sgTools::getFileLength |
( |
FILE * |
file |
) |
|
Get file length. Gets the length of a file.
- Parameters:
-
- Returns:
- the length
Ray mesh intersection. Checks if the given ray intersects the given mesh.
- Parameters:
-
| mesh | the mesh to check intersection with |
| from | the rays starting point |
| to | the rays end point |
| I | the position of the intersection |
Ray triangle intersection. Checks if the given ray intersects the given triangle.
- Parameters:
-
| from | the rays starting point |
| to | the rays end point |
| pos1 | the first vertex position |
| pos2 | the second vertex position |
| pos3 | the third vertex position |
| I | the position of the intersection |
- Returns:
- -1 = triangle is degenerate (a segment or point) 0 = disjoint (no intersect) 1 = intersect in unique point I1 2 = are in the same plane