You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
645 B

#pragma once
#include <Eigen/Eigen>
#include "matmesh.h"
#include <utility>
namespace da {
namespace sha {
/**
* @description:
* @param {MatMesh3} &matmesh
* @param {size_t} num_samples
* @return {sample point coordiniates, triangles points from}
*/
auto SamplePointsOnMeshSurfaceUniformly(const MatMesh3 &matmesh, size_t num_samples)
-> std::pair<Eigen::MatrixXd, Eigen::VectorXi>;
Eigen::MatrixXd SamplePointsInMeshVolumeUniformly(const MatMesh3 &matmesh, size_t num_samples);
Eigen::MatrixXd SamplePointsInAlignedBox3dUniformly(const Eigen::AlignedBox3d &aligned_box, size_t num_samples);
} // namespace sha
} // namespace da