Commit Graph

15 Commits

Author SHA1 Message Date
hasufell a1d3c3947e
Improve error handling
Basically be less fault tolerant. Added a lot of upper-case function
macros to use for fault-intolerant calls.
2014-05-13 13:47:13 +02:00
hasufell fe2698470a
Improve normal calculation
Should now also work on more complex polygons with more than 3 adjacent
faces. Also allows us to get the face normals separately.
2014-05-12 23:02:10 +02:00
hasufell 4dade4ff2c
Fix doxygen comments 2014-05-12 21:00:31 +02:00
hasufell e3496117ab
Cleanup 2014-05-12 20:59:34 +02:00
hasufell da36cd20da
Implement vertex normals 2014-05-12 20:20:03 +02:00
hasufell ce4032f0be
Use vector member in HE_vert struct 2014-05-12 19:48:46 +02:00
hasufell f2f4833392
Fix pair building 2014-05-12 19:46:26 +02:00
hasufell 29b8b410d6
Restructure find_center()
* return bool for success/failure
* use an out-vector to store the result
* fix tests
2014-05-11 14:02:34 +02:00
hasufell 4c8bb37e56
Fix error handling in get_normalized_scale_factor() 2014-05-10 22:58:51 +02:00
hasufell 1b97f290cf
Improve error handling in find_center() 2014-05-10 22:48:50 +02:00
hasufell fdb1271a39
Fix error handling in half-edge parser 2014-05-10 22:37:03 +02:00
hasufell c4b594b304
Fix spelling error 2014-05-10 21:06:36 +02:00
hasufell cf569224e0
Move some functions from gl_draw to half_edge
find_center() and get_normalized_scale_factor()
are not really related to drawing in it's own, but are
operation related to the HE_* structures
2014-05-10 21:05:08 +02:00
hasufell 7610843935
Add @file/@brief doc, merge parser into half_edge 2014-05-10 19:33:54 +02:00
hasufell c5c6c8b89a
Add half_edge.c for operations on half edge structures 2014-05-10 19:16:39 +02:00