Functions | |
bool | GEOM_FADE2D::readPointsBIN (const char *filename, std::vector< Point2 > &vPointsIn, bool bWithHeader=true) |
Read points from a binary file. More... | |
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... | |
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... | |
bool | GEOM_FADE2D::readSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsOut) |
Read segments from a binary file. More... | |
bool | GEOM_FADE2D::readXY (const char *filename, std::vector< Point2 > &vPointsOut) |
Read (x y) points. More... | |
bool | GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 * > &vPointsIn) |
Write points to an ASCII file. More... | |
bool | GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 > &vPointsIn) |
Write points to an ASCII file. More... | |
bool | GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 * > &vPoints) |
Write points to a binary file. More... | |
bool | GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 > &vPoints) |
Write points to a binary file. More... | |
bool | GEOM_FADE2D::writePointsPLY (const char *filename, std::vector< Point2 * > &vPoints, bool bASCII) |
Write points to a *.PLY file. More... | |
bool | GEOM_FADE2D::writePointsPLY (std::ostream &os, std::vector< Point2 * > &vPoints, bool bASCII) |
Write points to a *.PLY file. More... | |
bool | GEOM_FADE2D::writeSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsIn) |
Write segments to a binary file. More... | |
bool GEOM_FADE2D::readPointsBIN | ( | const char * | filename, |
std::vector< Point2 > & | vPointsIn, | ||
bool | bWithHeader = true |
||
) |
Read points from a binary file.
Reads points from a binary file.
filename | is the input file |
vPointsIn | is used to return the points |
bWithHeader | specifies if the file contains a header (like the ones written by writePointsBIN()) or if the file contains just a sequence of double precision coordinates - use false in this case. |
bool GEOM_FADE2D::readPointsPLY | ( | const char * | filename, |
bool | bUniquePoints, | ||
std::vector< Point2 > & | vPoints, | ||
std::vector< VtxColor > * | pVertexColors = NULL |
||
) |
Read points from a *.PLY file.
vPoints | [out] returns the read points |
filename | is the input filename |
bUniquePoints | specifies whether to read a unique point set OR point triples (3 points per triangle) |
pVertexColors | points to an optional color output vector. Default: NULL |
bool GEOM_FADE2D::readPointsPLY | ( | std::istream & | is, |
bool | bUniquePoints, | ||
std::vector< Point2 > & | vPoints, | ||
std::vector< VtxColor > * | pVertexColors = NULL |
||
) |
Read points from a *.PLY file.
vPoints | [out] returns the read points |
is | is the input stream |
bUniquePoints | specifies whether to read a unique point set OR point triples (3 points per triangle) |
pVertexColors | points to an optional color output vector. Default: NULL |
bool GEOM_FADE2D::readSegmentsBIN | ( | const char * | filename, |
std::vector< Segment2 > & | vSegmentsOut | ||
) |
Read segments from a binary file.
Reads segments from a binary file of type 21 or 31
bool GEOM_FADE2D::readXY | ( | const char * | filename, |
std::vector< Point2 > & | vPointsOut | ||
) |
Read (x y) points.
Reads points from an ASCII file. Expected file format: Two coordinates (x y) per line, whitespace separated.
bool GEOM_FADE2D::writePointsASCII | ( | const char * | filename, |
const std::vector< Point2 * > & | vPointsIn | ||
) |
Write points to an ASCII file.
Writes points to an ASCII file, two coordinates (x y) per line, whitespace separated.
bool GEOM_FADE2D::writePointsASCII | ( | const char * | filename, |
const std::vector< Point2 > & | vPointsIn | ||
) |
Write points to an ASCII file.
Write points to an ASCII file
bool GEOM_FADE2D::writePointsBIN | ( | const char * | filename, |
std::vector< Point2 * > & | vPoints | ||
) |
Write points to a binary file.
File format:
int filetype (20)
size_t numPoints (8 bytes)
double x0
double y0
double z0
...
double xn
double yn
double zn
bool GEOM_FADE2D::writePointsBIN | ( | const char * | filename, |
std::vector< Point2 > & | vPoints | ||
) |
Write points to a binary file.
File format:
int filetype (20)
size_t numPoints (8 bytes)
double x0
double y0
double z0
...
double xn
double yn
double zn
bool GEOM_FADE2D::writePointsPLY | ( | const char * | filename, |
std::vector< Point2 * > & | vPoints, | ||
bool | bASCII | ||
) |
Write points to a *.PLY file.
vPoints | [in] are the points to be written |
bASCII | specifies whether to write an ASCII- (true) or binary (false) *.ply file |
filename | is the output filename |
bool GEOM_FADE2D::writePointsPLY | ( | std::ostream & | os, |
std::vector< Point2 * > & | vPoints, | ||
bool | bASCII | ||
) |
Write points to a *.PLY file.
vPoints | [in] are the points to be written |
bASCII | specifies whether to write an ASCII- (true) or binary (false) *.ply file |
os | is the output stream |
bool GEOM_FADE2D::writeSegmentsBIN | ( | const char * | filename, |
std::vector< Segment2 > & | vSegmentsIn | ||
) |
Write segments to a binary file.
Binary file format:
int filetype (21)
size_t numSegments (vSegmentsIn.size()
)
double x0_source
double y0_source
double x0_target
double y0_target
...
double xn_source
double yn_source
double xn_target
double yn_target