Loading [MathJax]/extensions/TeX/AMSsymbols.js
Open3D (C++ API)  0.19.0
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
open3d::t::geometry::kernel::trianglemesh Namespace Reference

Functions

void NormalizeNormalsCPU (core::Tensor &normals)
 
void ComputeTriangleNormalsCPU (const core::Tensor &vertices, const core::Tensor &triangles, core::Tensor &normals)
 
void ComputeVertexNormalsCPU (const core::Tensor &triangles, const core::Tensor &triangle_normals, core::Tensor &vertex_normals)
 
void ComputeTriangleAreasCPU (const core::Tensor &vertices, const core::Tensor &triangles, core::Tensor &triangle_areas)
 
std::array< core::Tensor, 3 > SamplePointsUniformlyCPU (const core::Tensor &triangles, const core::Tensor &vertices, const core::Tensor &triangle_areas, const core::Tensor &vertex_normals, const core::Tensor &vertex_colors, const core::Tensor &triangle_normals, const core::Tensor &texture_uvs, const core::Tensor &albedo, size_t number_of_points)
 
template<typename T >
void mix_3x3 (T *out, const T *a, const T *b, const T *c, float wts[3])
 
template void mix_3x3< float > (float *out, const float *a, const float *b, const float *c, float wts[3])
 

Function Documentation

◆ ComputeTriangleAreasCPU()

void open3d::t::geometry::kernel::trianglemesh::ComputeTriangleAreasCPU ( const core::Tensor vertices,
const core::Tensor triangles,
core::Tensor triangle_areas 
)

◆ ComputeTriangleNormalsCPU()

void open3d::t::geometry::kernel::trianglemesh::ComputeTriangleNormalsCPU ( const core::Tensor vertices,
const core::Tensor triangles,
core::Tensor normals 
)

◆ ComputeVertexNormalsCPU()

void open3d::t::geometry::kernel::trianglemesh::ComputeVertexNormalsCPU ( const core::Tensor triangles,
const core::Tensor triangle_normals,
core::Tensor vertex_normals 
)

◆ mix_3x3()

template<typename T >
void open3d::t::geometry::kernel::trianglemesh::mix_3x3 ( T *  out,
const T *  a,
const T *  b,
const T *  c,
float  wts[3] 
)

◆ mix_3x3< float >()

template void open3d::t::geometry::kernel::trianglemesh::mix_3x3< float > ( float *  out,
const float *  a,
const float *  b,
const float *  c,
float  wts[3] 
)

◆ NormalizeNormalsCPU()

void open3d::t::geometry::kernel::trianglemesh::NormalizeNormalsCPU ( core::Tensor normals)

◆ SamplePointsUniformlyCPU()

std::array< core::Tensor, 3 > open3d::t::geometry::kernel::trianglemesh::SamplePointsUniformlyCPU ( const core::Tensor triangles,
const core::Tensor vertices,
const core::Tensor triangle_areas,
const core::Tensor vertex_normals,
const core::Tensor vertex_colors,
const core::Tensor triangle_normals,
const core::Tensor texture_uvs,
const core::Tensor albedo,
size_t  number_of_points 
)

All input tensors must be on CPU, contiguous and the correct shape. normals are computed if either vertex_normals and triangle_normals are not empty (used in that order). colors (Float32) are computed if either albedo and texture_uvs or vertex_colors are not empty (used in that order).