 | | Re: how does a line ends?
|
|
(...) Quick question. I was in a hurry, and wanted to play it safe, so I call feof instead of checking to see if char1 == EOF. Any idea what gets returned for extended ASCII characters (>= 128)? Does the int contain positive numbers greater than (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
(...) I timed the file reading/parsing portion of the model load. It would have been more difficult to time the actual amount of time spent inside fgets/myFgets, so realistically it's likely that myFgets is even slower in comparison to fgets. The (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: Inverse matrix?
|
|
(...) There really is no easy way to do it. Feel free to look at TCVector::invertMatrix in the LDView code if you want to see code that does it on a 4x4 matrix. To convert a 3x3 matrix into a 4x4 matrix, put the 3x3 in the top left, put a 1 in the (...) (20 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
|
| |
 | | Re: how does a line ends?
|
|
(...) That was quick! Thanks for taking the time to indulge me... (...) It is interesting that it was that much time difference. Are these the total load times, or just profiling of the time spent inside the fgets() routines? I see one or two things (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
(...) Yes, sorry that my post sounded overly defensive. I have something of a chip on my shoulder from years of working alongside programmers who want to take shortcuts at the expense of their users. Very few seem to appreciate that it is worth a (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|