CARLA
 
载入中...
搜索中...
未找到
| 类型定义 | 函数
MeshReconstruction 命名空间参考

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.
 

类型定义说明

◆ Fun3s

using MeshReconstruction::Fun3s = std::function<double(Vec3 const &)>

在文件 DataStructs.h54 行定义.

◆ Fun3v

using MeshReconstruction::Fun3v = std::function<Vec3(Vec3 const &)>

在文件 DataStructs.h55 行定义.

◆ Triangle

using MeshReconstruction::Triangle = std::array<int, 3>

在文件 DataStructs.h45 行定义.

函数说明

◆ MarchCube() [1/2]

Mesh MeshReconstruction::MarchCube ( Fun3s const & sdf,
Rect3 const & domain )

Reconstructs a triangle mesh from a given signed distance function using Marching Cubes.

参数
sdfThe Signed Distance Function.
domainDomain of reconstruction.
返回
The reconstructed mesh.

在文件 MeshReconstruction.h49 行定义.

引用了 MarchCube() , 以及 MeshReconstruction::Rect3::size.

被这些函数引用 MarchCube() , 以及 carla::road::Map::SDFToMesh().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ MarchCube() [2/2]

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.

参数
sdfThe Signed Distance Function.
domainDomain of reconstruction.
cubeSizeSize of marching cubes. Smaller cubes yields meshes of higher resolution.
isoLevelLevel set of the SDF for which triangulation should be done. Changing this value moves the reconstructed surface.
sdfGradGradient of the SDF which yields the vertex normals of the reconstructed mesh. If none is provided a numerical approximation is used.
返回
The reconstructed mesh.

在文件 MeshReconstruction.h57 行定义.

引用了 MeshReconstruction::Cube::Intersect(), MeshReconstruction::Rect3::min, min(), MeshReconstruction::Vec3::Norm(), MeshReconstruction::Rect3::size, Triangulate(), MeshReconstruction::Vec3::x, MeshReconstruction::Vec3::y , 以及 MeshReconstruction::Vec3::z.

+ 函数调用图:

◆ Triangulate()

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.h279 行定义.

引用了 MeshReconstruction::IntersectInfo::edgeVertIndices, MeshReconstruction::IntersectInfo::signConfig, MeshReconstruction::Mesh::triangles, MeshReconstruction::Mesh::vertexNormals , 以及 MeshReconstruction::Mesh::vertices.

被这些函数引用 MarchCube().

+ 这是这个函数的调用关系图: