类 | |
class | Cube |
struct | IntersectInfo |
struct | Mesh |
struct | Rect3 |
struct | Vec3 |
类型定义 | |
using | Fun3s = std::function<double(Vec3 const &)> |
using | Fun3v = std::function<Vec3(Vec3 const &)> |
using | Triangle = std::array<int, 3> |
函数 | |
Mesh | MarchCube (Fun3s const &sdf, Rect3 const &domain) |
Reconstructs a triangle mesh from a given signed distance function using Marching Cubes. | |
Mesh | MarchCube (Fun3s const &sdf, Rect3 const &domain, Vec3 const &cubeSize, double isoLevel=0, Fun3v sdfGrad=nullptr) |
Reconstructs a triangle mesh from a given signed distance function using Marching Cubes. | |
void | Triangulate (IntersectInfo const &intersect, Fun3v const &grad, Mesh &mesh) |
Given a grid cube and an isolevel the triangles (5 max) required to represent the isosurface in the cube are computed. | |
using MeshReconstruction::Fun3s = std::function<double(Vec3 const &)> |
在文件 DataStructs.h 第 54 行定义.
using MeshReconstruction::Fun3v = std::function<Vec3(Vec3 const &)> |
在文件 DataStructs.h 第 55 行定义.
using MeshReconstruction::Triangle = std::array<int, 3> |
在文件 DataStructs.h 第 45 行定义.
Reconstructs a triangle mesh from a given signed distance function using Marching Cubes.
sdf | The Signed Distance Function. |
domain | Domain of reconstruction. |
在文件 MeshReconstruction.h 第 49 行定义.
引用了 MarchCube() , 以及 MeshReconstruction::Rect3::size.
被这些函数引用 MarchCube() , 以及 carla::road::Map::SDFToMesh().
Mesh MeshReconstruction::MarchCube | ( | Fun3s const & | sdf, |
Rect3 const & | domain, | ||
Vec3 const & | cubeSize, | ||
double | isoLevel = 0, | ||
Fun3v | sdfGrad = nullptr ) |
Reconstructs a triangle mesh from a given signed distance function using Marching Cubes.
sdf | The Signed Distance Function. |
domain | Domain of reconstruction. |
cubeSize | Size of marching cubes. Smaller cubes yields meshes of higher resolution. |
isoLevel | Level set of the SDF for which triangulation should be done. Changing this value moves the reconstructed surface. |
sdfGrad | Gradient of the SDF which yields the vertex normals of the reconstructed mesh. If none is provided a numerical approximation is used. |
在文件 MeshReconstruction.h 第 57 行定义.
引用了 MeshReconstruction::Cube::Intersect(), MeshReconstruction::Rect3::min, min(), MeshReconstruction::Vec3::Norm(), MeshReconstruction::Rect3::size, Triangulate(), MeshReconstruction::Vec3::x, MeshReconstruction::Vec3::y , 以及 MeshReconstruction::Vec3::z.
void MeshReconstruction::Triangulate | ( | IntersectInfo const & | intersect, |
Fun3v const & | grad, | ||
Mesh & | mesh ) |
Given a grid cube and an isolevel the triangles (5 max) required to represent the isosurface in the cube are computed.
在文件 Triangulation.h 第 279 行定义.
引用了 MeshReconstruction::IntersectInfo::edgeVertIndices, MeshReconstruction::IntersectInfo::signConfig, MeshReconstruction::Mesh::triangles, MeshReconstruction::Mesh::vertexNormals , 以及 MeshReconstruction::Mesh::vertices.
被这些函数引用 MarchCube().