diff --git a/Doc/tutorial_08.docu b/Doc/tutorial_08.docu index 1460acbb..cafb26e0 100644 --- a/Doc/tutorial_08.docu +++ b/Doc/tutorial_08.docu @@ -12,7 +12,7 @@ for enabling, disabling and verifying the bits in the set. We distinguish between -# mode bits - control binary reading/writing - - Options::Binary + - Options::Binary - Options::MSB - Options::LSB - Options::Swap (MSB|LSB) @@ -22,6 +22,8 @@ distinguish between - Options::VertexColor - Options::FaceNormal - Options::FaceColor + - Options::ColorAlpha + - Options::ColorFloat These bits have different effects when reading or writing. The file format itself is selected by the extension of the filename. The IO @@ -40,7 +42,7 @@ the format supports ASCII/binary storage with the apropiate extension. STL.stla, .stl.stlb, .stl OM.om - + The program does not more than providing a command line based @@ -48,6 +50,8 @@ interface to select the option bits for reading/writing and to request mesh properties. Hence illegal combinations are possible and will result in a failure of the program. (The input file won't be damaged in this case, but be careful where you put the ouput file!) +Please note that the Options::ColorFloat is currently only implemented for PLY +and OFF files.
Reading meshes
@@ -108,7 +112,7 @@ The method returns false on error, which might have three different reasons: -# the option is not supported by the choosen format -# a selected standard property is not available --# a 'system' error like +-# a 'system' error like - could not open the file due to access rights - disk space exhausted during write - ... @@ -118,4 +122,4 @@ The complete source looks like this: \include 08-io_options/io_options.cc -*/ \ No newline at end of file +*/ diff --git a/src/OpenMesh/Core/IO/Options.hh b/src/OpenMesh/Core/IO/Options.hh index 56eb2dd0..63069ba8 100644 --- a/src/OpenMesh/Core/IO/Options.hh +++ b/src/OpenMesh/Core/IO/Options.hh @@ -107,7 +107,7 @@ public: FaceColor = 0x0200, ///< Has (r) / store (w) face colors FaceTexCoord = 0x0400, ///< Has (r) / store (w) face texture coordinates ColorAlpha = 0x0800, ///< Has (r) / store (w) alpha values for colors - ColorFloat = 0x1000 ///< Has (r) / store (w) float values for colors + ColorFloat = 0x1000 ///< Has (r) / store (w) float values for colors (currently only implemented for PLY and OFF files) }; public: