1.2.2
CCC
 
PolyLine2D.cpp File Reference
#include "geoslib_f_private.h"
#include "geoslib_old_f.h"
#include "Basic/PolyLine2D.hpp"
#include "Basic/NamingConvention.hpp"
#include "Geometry/GeometryHelper.hpp"
#include "Stats/Classical.hpp"
#include "Stats/Regression.hpp"
#include "Db/Db.hpp"
#include "Db/DbGrid.hpp"

Functions

int dbUnfoldPolyline (Db *db, const PolyLine2D &polyline, const NamingConvention &namconv)
 
int dbFoldPolyline (DbGrid *dbin, Db *dbout, const VectorInt &cols, const PolyLine2D &polyline, const NamingConvention &namconv)
 
int dbFromPolylines (Db *db, const PolyLine2D &top, const PolyLine2D &bot, int nb_neigh, bool flagMask, const NamingConvention &namconv)
 
double distanceBetweenPolylines (const PolyLine2D &poly1, const PolyLine2D &poly2, const PolyPoint2D &pldist1, const PolyPoint2D &pldist2)
 

Function Documentation

int dbFoldPolyline ( DbGrid dbin,
Db dbout,
const VectorInt cols,
const PolyLine2D polyline,
const NamingConvention namconv 
)

Fold an input Db into an output Db with respect to a polyline

Returns
Error return code
Parameters
[in]dbinInput Db structure
[in]dboutOutput Db structure
[in]colsVector of the target variable ranks
[in]polylinePolyLine2D structure
[in]namconvNaming convention
int dbFromPolylines ( Db db,
const PolyLine2D top,
const PolyLine2D bot,
int  nb_neigh,
bool  flagMask,
const NamingConvention namconv 
)

Calculate quantities on the Db by comparison with top and bottom polylines

Parameters
dbPointer to the Db where relevant information will be stored
top2-D Polyline defining the Top surface
bot2-D Polyline defining the Bottom surface
nb_neighSize of neighborhood radius (for regularizing the angle calculation)
flagMaskMask if the target is outside the two polylines
namconvNaming convention
Returns
Error return code
Remarks
Three variables are created:
1 - Minimum distance between Target and Polylines
2 - Distance between Polylines at Target location
3 - Average angle of Polylines at Target location
int dbUnfoldPolyline ( Db db,
const PolyLine2D polyline,
const NamingConvention namconv 
)

Unfold a 2-D Db with respect to a polyline

Returns
Error return code
Parameters
[in]dbDb structure
[in]polylinePolyLine2D structure
[in]namconvNaming convention
double distanceBetweenPolylines ( const PolyLine2D poly1,
const PolyLine2D poly2,
const PolyPoint2D pldist1,
const PolyPoint2D pldist2 
)