ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvTetraMeshFactory.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include <CVLog.h>
9 
10 #include "ecvPointCloud.h"
11 #include "ecvQhull.h"
12 #include "ecvTetraMesh.h"
13 
14 namespace cloudViewer {
15 namespace geometry {
16 
17 std::tuple<std::shared_ptr<TetraMesh>, std::vector<size_t>>
19  if (point_cloud.size() < 4) {
21  "[CreateFromPointCloud] not enough points to create a "
22  "tetrahedral mesh.");
23  }
25 }
26 } // namespace geometry
27 } // namespace cloudViewer
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
std::vector< CCVector3 > & getPoints()
unsigned size() const override
Definition: PointCloudTpl.h:38
static std::tuple< std::shared_ptr< TetraMesh >, std::vector< size_t > > ComputeDelaunayTetrahedralization(const std::vector< Eigen::Vector3d > &points)
Definition: ecvQhull.cpp:133
static std::tuple< std::shared_ptr< TetraMesh >, std::vector< size_t > > CreateFromPointCloud(const ccPointCloud &point_cloud)
Function that creates a tetrahedral mesh (TetraMeshFactory.cpp). from a point cloud.
Generic file read and write utility for python interface.