![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <ManualSegmentationTools.h>#include <CVPointCloud.h>#include <GenericProgressCallback.h>#include <Polyline.h>#include <SimpleMesh.h>#include <cstdint>#include <map>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, InsideOutsideIndexes > | s_edgePoint |
| bool AddTriangle | ( | unsigned | iA, |
| unsigned | iB, | ||
| unsigned | iC, | ||
| SimpleMesh * | mesh, | ||
| bool | directOrder | ||
| ) |
References cloudViewer::SimpleMesh::addTriangle(), c_defaultArrayGrowth, c_realIndexMask, cloudViewer::SimpleMesh::capacity(), cloudViewer::SimpleMesh::reserve(), and cloudViewer::SimpleMesh::size().
Referenced by cloudViewer::ManualSegmentationTools::segmentMeshWithAABox(), and cloudViewer::ManualSegmentationTools::segmentMeshWithAAPlane().
| bool AddVertex | ( | CCVector3d & | P, |
| PointCloud * | vertices, | ||
| unsigned & | index | ||
| ) |
References cloudViewer::PointCloudTpl< T >::addPoint(), c_defaultArrayGrowth, cloudViewer::PointCloudTpl< T >::capacity(), Vector3Tpl< PointCoordinateType >::fromArray(), cloudViewer::PointCloudTpl< T >::reserve(), cloudViewer::PointCloudTpl< T >::size(), and Tuple3Tpl< Type >::u.
Referenced by 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 | ||
| ) |
| bool ImportSourceVertices | ( | GenericIndexedCloudPersist * | srcVertices, |
| SimpleMesh * | newMesh, | ||
| PointCloud * | newVertices | ||
| ) |
References cloudViewer::PointCloudTpl< T >::addPoint(), c_realIndexMask, c_srcIndexFlag, cloudViewer::GenericIndexedCloud::getPoint(), cloudViewer::SimpleMesh::getTriangleVertIndexes(), cloudViewer::VerticesIndexes::i1, cloudViewer::VerticesIndexes::i2, cloudViewer::VerticesIndexes::i3, cloudViewer::PointCloudTpl< T >::reserve(), cloudViewer::PointCloud::resize(), cloudViewer::GenericCloud::size(), cloudViewer::PointCloudTpl< T >::size(), and cloudViewer::SimpleMesh::size().
Referenced by cloudViewer::ManualSegmentationTools::segmentMeshWithAABox().
| bool MergeOldTriangles | ( | GenericIndexedMesh * | origMesh, |
| GenericIndexedCloudPersist * | origVertices, | ||
| SimpleMesh * | newMesh, | ||
| PointCloud * | newVertices, | ||
| const std::vector< unsigned > & | preservedTriangleIndexes, | ||
| std::vector< unsigned > * | origTriIndexesMap = nullptr |
||
| ) |
References cloudViewer::PointCloudTpl< T >::addPoint(), cloudViewer::SimpleMesh::addTriangle(), c_origIndexFlag, c_realIndexMask, cloudViewer::GenericIndexedCloud::getPoint(), cloudViewer::SimpleMesh::getTriangleVertIndexes(), cloudViewer::GenericIndexedMesh::getTriangleVertIndexes(), cloudViewer::VerticesIndexes::i1, cloudViewer::VerticesIndexes::i2, cloudViewer::VerticesIndexes::i3, cloudViewer::SimpleMesh::reserve(), cloudViewer::PointCloudTpl< T >::reserve(), cloudViewer::PointCloud::resize(), cloudViewer::SimpleMesh::resize(), cloudViewer::GenericCloud::size(), cloudViewer::PointCloudTpl< T >::size(), and cloudViewer::SimpleMesh::size().
Referenced by cloudViewer::ManualSegmentationTools::segmentMeshWithAABox(), and cloudViewer::ManualSegmentationTools::segmentMeshWithAAPlane().
| const unsigned c_defaultArrayGrowth = 1024 |
Referenced by AddTriangle(), and AddVertex().
| const unsigned c_origIndexFlag = 0x80000000 |
| const unsigned c_realIndexMask |
Referenced by AddTriangle(), ImportSourceVertices(), MergeOldTriangles(), cloudViewer::ManualSegmentationTools::segmentMeshWithAABox(), and cloudViewer::ManualSegmentationTools::segmentMeshWithAAPlane().
| const unsigned c_srcIndexFlag = 0x40000000 |
Referenced by ImportSourceVertices(), and cloudViewer::ManualSegmentationTools::segmentMeshWithAABox().
|
static |