Functions | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::readPointsBIN (const char *filename, std::vector< Point2 > &vPoints, bool bWithHeader=true) |
| Read points from a binary file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::readPointsPLY (const char *filename, bool bUniquePoints, std::vector< Point2 > &vPoints, std::vector< VtxColor > *pVertexColors=NULL) |
| Read points from a *.PLY file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::readPointsPLY (std::istream &is, bool bUniquePoints, std::vector< Point2 > &vPoints, std::vector< VtxColor > *pVertexColors=NULL) |
| Read points from a *.PLY file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::readSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsOut) |
| Read segments from a binary file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::readXY (const char *filename, std::vector< Point2 > &vPointsOut) |
| Read (x y) points from an ASCII file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 * > &vPointsIn) |
| Write points to an ASCII file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 > &vPointsIn) |
| Write points to an ASCII file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 * > &vPoints) |
| Write points to a binary file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 > &vPoints) |
| Write points to a binary file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writePointsPLY (const char *filename, std::vector< Point2 * > &vPoints, bool bASCII) |
| Write points to a *.PLY file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writePointsPLY (std::ostream &os, std::vector< Point2 * > &vPoints, bool bASCII) |
| Write points to a *.PLY file. More... | |
| CLASS_DECLSPEC bool | GEOM_FADE2D::writeSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsIn) |
| Write segments to a binary file. More... | |
| CLASS_DECLSPEC bool GEOM_FADE2D::readPointsBIN | ( | const char * | filename, |
| std::vector< Point2 > & | vPoints, | ||
| bool | bWithHeader = true |
||
| ) |
This function reads points from a binary file into the provided vector. The format of the file can either include a header (written by writePointsBIN()) or it can contain just a sequence of double precision coordinates without a header.
| [in] | filename | The name of the input binary file to read from. |
| [out] | vPoints | A vector where the read points will be stored. |
| [in] | bWithHeader | Specifies if the file contains a header:
|
| CLASS_DECLSPEC bool GEOM_FADE2D::readPointsPLY | ( | const char * | filename, |
| bool | bUniquePoints, | ||
| std::vector< Point2 > & | vPoints, | ||
| std::vector< VtxColor > * | pVertexColors = NULL |
||
| ) |
This function reads points from a *.PLY file and stores them in the provided vector. Optionally, the function can also read associated vertex colors if specified.
| [out] | vPoints | A vector where the read points will be stored. |
| [in] | filename | The name of the input *.PLY file to read from. |
| [in] | bUniquePoints | Specifies whether to read a unique set of points or point triples (3 points per triangle):
|
| [in] | pVertexColors | A pointer to a vector where vertex colors will be stored. Default is NULL. |
pVertexColors is not NULL, the function will store colors from the *.PLY file in *pVertexColors. Additionally, indices to these colors will be stored in the points, which can be retrieved using the Point2::getCustomIndex() function.| CLASS_DECLSPEC bool GEOM_FADE2D::readPointsPLY | ( | std::istream & | is, |
| bool | bUniquePoints, | ||
| std::vector< Point2 > & | vPoints, | ||
| std::vector< VtxColor > * | pVertexColors = NULL |
||
| ) |
This function reads points from a *.PLY file and stores them in the provided vector. Optionally, the function can also read associated vertex colors if specified.
| [out] | vPoints | A vector where the read points will be stored. |
| [in] | is | The input stream to read from. |
| [in] | bUniquePoints | Specifies whether to read a unique set of points or point triples (3 points per triangle):
|
| [in] | pVertexColors | A pointer to a vector where vertex colors will be stored. Default is NULL. |
pVertexColors is not NULL, the function will store colors from the *.PLY file in *pVertexColors. Additionally, indices to these colors will be stored in the points, which can be retrieved using the Point2::getCustomIndex() function.| CLASS_DECLSPEC bool GEOM_FADE2D::readSegmentsBIN | ( | const char * | filename, |
| std::vector< Segment2 > & | vSegmentsOut | ||
| ) |
This function reads segments from a binary file and stores them in the provided vector.
| [in] | filename | The name of the binary file to read. |
| [out] | vSegmentsOut | A vector where the read segments will be stored. |
true if the segments were successfully read, false otherwise.| CLASS_DECLSPEC bool GEOM_FADE2D::readXY | ( | const char * | filename, |
| std::vector< Point2 > & | vPointsOut | ||
| ) |
This function reads points from an ASCII file. Each line in the file contains two coordinates (x, y), separated by whitespace.
| [in] | filename | The name of the ASCII file containing the points. |
| [out] | vPointsOut | A vector where the read points will be stored. |
true if the points were successfully read, false otherwise. | CLASS_DECLSPEC bool GEOM_FADE2D::writePointsASCII | ( | const char * | filename, |
| const std::vector< Point2 * > & | vPointsIn | ||
| ) |
This function writes points to an ASCII file. The format is:
| [in] | filename | The name of the output file where points will be written. |
| [in] | vPointsIn | A vector containing pointers to the points to be written to the file. |
true if the points were successfully written, false otherwise.| CLASS_DECLSPEC bool GEOM_FADE2D::writePointsASCII | ( | const char * | filename, |
| const std::vector< Point2 > & | vPointsIn | ||
| ) |
This function writes points to an ASCII file. The file format consists of two coordinates (x, y) per line, whitespace separated.
| [in] | filename | The name of the output file where the points will be written. |
| [in] | vPointsIn | A vector containing the points to be written to the file. |
true if the points were successfully written, false otherwise.| CLASS_DECLSPEC bool GEOM_FADE2D::writePointsBIN | ( | const char * | filename, |
| std::vector< Point2 * > & | vPoints | ||
| ) |
This function writes points to a binary file. The file format consists of:
filetype:size_t indicating the number of points.double values representing the coordinates:x, y, and z.| [in] | filename | The name of the output binary file. |
| [in] | vPoints | A vector of pointers to points to be written to the file. |
true if the points were successfully written, false otherwise.size_t type is 8 bytes on 64-bit platforms but only 4 bytes on 32-bit platforms. This format always uses 8 bytes for compatibility across architectures. | CLASS_DECLSPEC bool GEOM_FADE2D::writePointsBIN | ( | const char * | filename, |
| std::vector< Point2 > & | vPoints | ||
| ) |
This function writes points to a binary file. The file format consists of:
filetype:size_t indicating the number of points.double values representing the coordinates:x, y, and z.| [in] | filename | The name of the output binary file. |
| [in] | vPoints | A vector containing the points to be written to the file. |
true if the points were successfully written, false otherwise.size_t type is 8 bytes on 64-bit platforms but only 4 bytes on 32-bit platforms. This format always uses 8 bytes for compatibility across architectures. | CLASS_DECLSPEC bool GEOM_FADE2D::writePointsPLY | ( | const char * | filename, |
| std::vector< Point2 * > & | vPoints, | ||
| bool | bASCII | ||
| ) |
This function writes points to a *.PLY file in either ASCII or binary format.
| [in] | vPoints | A vector of pointers to points to be written to the *.PLY file. |
| [in] | bASCII | Specifies whether to write the file in ASCII format (true) or binary format (false). |
| [in] | filename | The output file where the *.PLY file will be written. |
| CLASS_DECLSPEC bool GEOM_FADE2D::writePointsPLY | ( | std::ostream & | os, |
| std::vector< Point2 * > & | vPoints, | ||
| bool | bASCII | ||
| ) |
This function writes points to a *.PLY file in either ASCII or binary format.
| [in] | vPoints | A vector of points to be written to the *.PLY file. |
| [in] | bASCII | Specifies whether to write the file in ASCII format (true) or binary format (false). |
| [in] | os | The output stream where the *.PLY file will be written. |
| CLASS_DECLSPEC bool GEOM_FADE2D::writeSegmentsBIN | ( | const char * | filename, |
| std::vector< Segment2 > & | vSegmentsIn | ||
| ) |
Writes segments to a binary file with the following format:
Binary file format:
vSegmentsIn.size())