Merge pull request #3 from nyue/master

Fix for Win32 build
Trivial change for gcc 4.7 warning.
Explicitly set read buffer size to 8k in default IO handler.

Some file systems were causing the buffer size to be as large as 512k
per file handle and this was using an inordinate amount of memory.  8k
seems plenty and can be tuned in PtexIO.h if desired.
Use float precision (avoid float/double conversions).
Remove LOD bias on bilinear filter.
Renamed formal parameters to silence -Wshadow downstream
Remove dynamic casts.
Adding a -c flag to ptxinfo that performs a sanity check of the face
adjacency data in the given ptex file. Any inconsistency found is
dumped in the terminal stderr.
fix the subface adjacency logic - Brent wrote:

8<================================

That said, the ptex library doesn't assume prman orientation of subfaces.  The
general rule is that if a subface points to a non-subface neighbor and the
neighbor points back to the subface, then it's in the primary position; if not
it's assumed to be in the secondary position.  In the secondary position, the
neighbor on edge e must point to the neighbor on edge (e+1)%4.

Expressed in code:
if (finfo.isSubface() && !adjf.isSubface()) {
   // neighbor face might be pointing to "other" subface
   if (oppfid == finfo.adjface((e+1)%4)) continue;
}
Merge pull request #5 from manuelk/master

Add face-adjacency consistency check, ptxinfo -c
Makefile: allow supplying custom flags via config.mak

Allow users to override the default flags by providing an untracked
"config.mak" file in the src/ directory.  This allows someone to have,
for example,

	CXXFLAGS += -Wsign-compare -Wconversion -Werror

in their config.mak and Ptex will build using those flags.

Signed-off-by: David Aguilar <davvid@gmail.com>
warnings: eliminate conversion warnings

This allows Ptex to be built using -Wconversion and -Wsign-compare.

Signed-off-by: David Aguilar <davvid@gmail.com>
Don't use strtok_r due to portability issues.
Replace snprintf use with stringstream.
Merge pull request #7 from davvid/warnings

Eliminate warnings when building with -Wsign-compare -Wconversion
Add conversion from std::string to Ptex::String (for Windows).
Bugfix: compute correct file offsets when extheadersize is different than expected.
Add cast to silence warning when building with -Wconversion
Fix memset size in getPixel()
Merge pull request #9 from davvid/memset-size

Fix memset size in getPixel()