Commit Graph

20 Commits

Author SHA1 Message Date
hasufell 4bf8d0982b
Rm useless printf 2014-05-09 14:57:46 +02:00
hasufell 466a8ef6e0
Fix memory leak in parser 2014-05-09 14:57:46 +02:00
hasufell 5b5eea7f03 Improve inline comments 2014-05-09 11:38:53 +02:00
hasufell a32de1dd6d Save edge pointer in vertices 2014-05-09 11:38:37 +02:00
hasufell a918af80f3
Fix valgrind warnings and counter in "find pairs" 2014-05-08 18:06:06 +02:00
hasufell 1218778145
Restructure files
filereader: file operation, reading files, reading .obj
parser: parses a string representing obj structure, converting
        to HE_obj
print: various helper functions for printing the structures
2014-05-08 17:39:23 +02:00
hasufell d3430d36fd
Implement print_edges() and print_faces() 2014-05-08 17:37:39 +02:00
hasufell 3aa6c59904
Implement creating HE_edges and HE_faces 2014-05-08 17:37:22 +02:00
hasufell c8eca1b978
Consistently use uint32_t types for counters etc. 2014-05-08 17:36:46 +02:00
hasufell 98bdeac6f8
Clean up, improve counter logic, cast alloc/realloc 2014-05-08 17:36:13 +02:00
hasufell 4b04a66cf8
Implement various print functions, add HE_obj struct 2014-05-07 21:52:36 +02:00
hasufell 1a2c9767ab
Implement parsing of the faces (only plain for now)
This is not yet the HE_face structure!
2014-05-07 21:51:47 +02:00
hasufell 2887dd2117
Fix realloc() usage
We must not do:
  foo = realloc(foo, ...)
if realloc fails, then we have no idea about it, so we
have to use temporary NULL initialized pointers.
2014-05-07 21:13:29 +02:00
hasufell bc2a35cd4e
Fix memory allocation read_file()
The logic was simply broken and did only work
if the file was less than STD_FILE_BUF.
2014-05-07 21:10:07 +02:00
hasufell 6270173331
Initialize pointers 2014-05-07 21:09:32 +02:00
hasufell e8f0a68ed8
Make valgrind happy 2014-05-07 21:09:04 +02:00
hasufell f517f548d8
Set parameters const where possible 2014-05-06 23:29:01 +02:00
hasufell 44e715db88
Add GPL-2 license 2014-05-06 23:20:16 +02:00
hasufell 7f0a5e7913
Alphabetical order for includes
unless needed otherwise
2014-05-06 23:18:38 +02:00
hasufell 33d658a37f
First try of a parser 2014-05-06 23:09:59 +02:00