|
Blender V4.3
|
#include <mesh.h>
Public Member Functions | |
| void | bounds_grow (const float3 *verts, BoundBox &bounds) const |
| void | motion_verts (const float3 *verts, const float3 *vert_steps, size_t num_verts, size_t num_steps, float time, float3 r_verts[3]) const |
| void | verts_for_step (const float3 *verts, const float3 *vert_steps, size_t num_verts, size_t num_steps, size_t step, float3 r_verts[3]) const |
| float3 | compute_normal (const float3 *verts) const |
| bool | valid (const float3 *verts) const |
Public Attributes | |
| int | v [3] |
Definition at line 50 of file scene/mesh.h.
| CCL_NAMESPACE_BEGIN void Mesh::Triangle::bounds_grow | ( | const float3 * | verts, |
| BoundBox & | bounds ) const |
Definition at line 28 of file scene/mesh.cpp.
References Geometry::bounds, bounds_grow(), BoundBox::grow(), v, and verts.
Referenced by BVHBuild::add_reference_triangles(), bounds_grow(), and BVH2::refit_primitives().
Definition at line 83 of file scene/mesh.cpp.
References compute_normal(), cross(), len, make_float3(), norm(), v, v2, and verts.
Referenced by Mesh::add_face_normals(), Mesh::add_vertex_normals(), compute_normal(), and MikkMeshWrapper< is_subd >::GetNormal().
| void Mesh::Triangle::motion_verts | ( | const float3 * | verts, |
| const float3 * | vert_steps, | ||
| size_t | num_verts, | ||
| size_t | num_steps, | ||
| float | time, | ||
| float3 | r_verts[3] ) const |
Definition at line 35 of file scene/mesh.cpp.
References min, motion_verts(), verts, and verts_for_step().
Referenced by BVHBuild::add_reference_triangles(), and motion_verts().
| bool Mesh::Triangle::valid | ( | const float3 * | verts | ) | const |
Definition at line 96 of file scene/mesh.cpp.
References isfinite_safe(), v, valid(), and verts.
Referenced by BVHBuild::add_reference_triangles(), LightManager::device_update_distribution(), and valid().
| void Mesh::Triangle::verts_for_step | ( | const float3 * | verts, |
| const float3 * | vert_steps, | ||
| size_t | num_verts, | ||
| size_t | num_steps, | ||
| size_t | step, | ||
| float3 | r_verts[3] ) const |
Definition at line 57 of file scene/mesh.cpp.
References v, verts, and verts_for_step().
Referenced by motion_verts(), and verts_for_step().
| int Mesh::Triangle::v[3] |
Definition at line 51 of file scene/mesh.h.
Referenced by Mesh::add_vertex_normals(), bounds_grow(), compute_face_normal(), compute_normal(), LightManager::device_update_distribution(), fill_shader_input(), LightTreeEmitter::LightTreeEmitter(), read_shader_output(), BVHSpatialSplit::split_triangle_primitive(), valid(), and verts_for_step().