ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ManualSegmentationTools.cpp File Reference
#include <ManualSegmentationTools.h>
#include <CVPointCloud.h>
#include <GenericProgressCallback.h>
#include <Polyline.h>
#include <SimpleMesh.h>
#include <cstdint>
#include <map>
Include dependency graph for ManualSegmentationTools.cpp:

Go to the source code of this file.

Classes

struct  InsideOutsideIndexes
 

Functions

bool AddVertex (CCVector3d &P, PointCloud *vertices, unsigned &index)
 
bool ComputeEdgePoint (const CCVector3d &A, unsigned iA, const CCVector3d &B, unsigned iB, unsigned &iCoutside, unsigned &iCinside, double planeCoord, unsigned char planeDim, PointCloud *outsideVertices, PointCloud *insideVertices)
 
bool AddTriangle (unsigned iA, unsigned iB, unsigned iC, SimpleMesh *mesh, bool directOrder)
 
bool MergeOldTriangles (GenericIndexedMesh *origMesh, GenericIndexedCloudPersist *origVertices, SimpleMesh *newMesh, PointCloud *newVertices, const std::vector< unsigned > &preservedTriangleIndexes, std::vector< unsigned > *origTriIndexesMap=nullptr)
 
bool ImportSourceVertices (GenericIndexedCloudPersist *srcVertices, SimpleMesh *newMesh, PointCloud *newVertices)
 

Variables

const unsigned c_origIndexFlag = 0x80000000
 
const unsigned c_srcIndexFlag = 0x40000000
 
const unsigned c_realIndexMask
 
const unsigned c_defaultArrayGrowth = 1024
 
static std::map< uint64_t, InsideOutsideIndexess_edgePoint
 

Function Documentation

◆ AddTriangle()

◆ AddVertex()

◆ ComputeEdgePoint()

bool ComputeEdgePoint ( const CCVector3d A,
unsigned  iA,
const CCVector3d B,
unsigned  iB,
unsigned &  iCoutside,
unsigned &  iCinside,
double  planeCoord,
unsigned char  planeDim,
PointCloud outsideVertices,
PointCloud insideVertices 
)

◆ ImportSourceVertices()

◆ MergeOldTriangles()

Variable Documentation

◆ c_defaultArrayGrowth

const unsigned c_defaultArrayGrowth = 1024

Definition at line 337 of file ManualSegmentationTools.cpp.

Referenced by AddTriangle(), and AddVertex().

◆ c_origIndexFlag

◆ c_realIndexMask

◆ c_srcIndexFlag

const unsigned c_srcIndexFlag = 0x40000000

◆ s_edgePoint