|
Blender V5.0
|
#include <algorithm>#include "bvh/build.h"#include "bvh/bvh.h"#include "device/device.h"#include "scene/attribute.h"#include "scene/mesh.h"#include "scene/object.h"#include "scene/scene.h"#include "scene/shader_graph.h"#include "subd/split.h"#include "util/log.h"#include "util/set.h"#include "mikktspace.hh"Go to the source code of this file.
Classes | |
| struct | MikkMeshWrapper |
Functions | |
| static void | mikk_compute_tangents (Attribute *attr_uv, Mesh *mesh, const bool need_sign, const AttributeStandard tangent_std, const AttributeStandard tangent_sign_std, const char *tangent_postfix, const char *tangent_sign_postfix) |
| NODE_DEFINE (Mesh) | |
|
static |
Definition at line 118 of file scene/mesh.cpp.
References AttributeSet::add(), ATTR_ELEMENT_CORNER, ATTR_STD_UV, ATTR_STD_VERTEX_NORMAL, Geometry::attributes, Attribute::data_float(), Attribute::data_float2(), Attribute::data_float3(), AttributeSet::find(), mikk::Mikktspace< Mesh >::genTangSpace(), Attribute::name, name, Attribute::standard_name(), and Attribute::std.
Referenced by Mesh::update_tangents().
| NODE_DEFINE | ( | Mesh | ) |
Definition at line 256 of file scene/mesh.cpp.
References NodeType::add(), NodeEnum::insert(), NodeType::NONE, SOCKET_BOOLEAN_ARRAY, SOCKET_ENUM, SOCKET_FLOAT, SOCKET_FLOAT_ARRAY, SOCKET_INT, SOCKET_INT_ARRAY, SOCKET_POINT_ARRAY, SOCKET_TRANSFORM, Mesh::SUBDIVISION_ADAPTIVE_SPACE_OBJECT, Mesh::SUBDIVISION_ADAPTIVE_SPACE_PIXEL, Mesh::SUBDIVISION_BOUNDARY_EDGE_AND_CORNER, Mesh::SUBDIVISION_BOUNDARY_EDGE_ONLY, Mesh::SUBDIVISION_BOUNDARY_NONE, Mesh::SUBDIVISION_CATMULL_CLARK, Mesh::SUBDIVISION_FVAR_LINEAR_ALL, Mesh::SUBDIVISION_FVAR_LINEAR_BOUNDARIES, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_ONLY, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_PLUS1, Mesh::SUBDIVISION_FVAR_LINEAR_CORNERS_PLUS2, Mesh::SUBDIVISION_FVAR_LINEAR_NONE, Mesh::SUBDIVISION_LINEAR, Mesh::SUBDIVISION_NONE, transform_identity(), Node::type, and verts.