Commit Graph

27 Commits

Author SHA1 Message Date
hasufell 034a8dd0be Use vertices normals of the .obj file
Former-commit-id: a78c9ea77d8bbb6f7ec87a8937e6275001c5c804
2014-06-13 14:50:15 +02:00
hasufell a9ddb5622b Convert the rest to conditional reallocs
Former-commit-id: fb7bc22c43ee7c635f17f061c2de3fc0b21cbb83
2014-06-08 02:45:22 +02:00
hasufell ea8d08204c
Move bezier stuff to it's own module 2014-06-01 15:12:37 +02:00
hasufell cabc8e8c09
Draw bezier curve 2014-06-01 02:13:45 +02:00
hasufell 81e8aa0552
Allow to read bezier curves 2014-05-31 17:32:40 +02:00
hasufell f65021dfac
Add missing doxygen comment 2014-05-17 18:42:30 +02:00
hasufell 2f52351cbf
Refactor
Use a separate accelertion struct for HE_vert.
Don't use so long parameter lists, introduce obj_items
data structure.
2014-05-17 14:07:34 +02:00
hasufell bf7b86845e
Save texture coordinates as well 2014-05-17 02:52:00 +02:00
hasufell cd864fa1ba
Move half-edge assembler to separate .c file 2014-05-16 20:10:43 +02:00
hasufell 0ecd0d8e9f
Merge branch 'master' into refactor
Conflicts:
	src/half_edge.c
2014-05-16 19:15:29 +02:00
hasufell f62e280cea
Reimplement dummy-edge logic
This will also work for more complex structures such as
testscube2_mitSpitze_offen.obj.
2014-05-16 19:04:38 +02:00
hasufell 15e5ab1c23
New fill_vertices() method, simplify some data types 2014-05-16 00:15:29 +02:00
hasufell 491a5fbe91
Finish up the new parsing modules 2014-05-15 22:42:22 +02:00
hasufell 242af84c99
Remove obsolete macro
It is already in half_edge.c and since it refers to a static
function it has no place here.
2014-05-15 18:52:52 +02:00
hasufell aaa485f072
Try to fix normals for open edges
Probably still not correct, depending on the complexity
of the object.
2014-05-15 18:52:28 +02:00
hasufell a4026b63e6
Fix doxygen comment 2014-05-15 18:34:07 +02:00
hasufell fd9d15c4ea
Add more user controls, draw faces as separate polygons
This also fixes drawing of open objects.
2014-05-15 18:33:43 +02:00
hasufell e4bad92195
Implement acceleration structure 2014-05-13 20:09:16 +02:00
hasufell 5b53950def
More error handling improvements 2014-05-13 14:05:02 +02:00
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 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 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 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 d90d6f4bd1
Restructure files 2014-05-10 19:16:13 +02:00