Blender  V2.93
Functions
mesh_displace.cpp File Reference
#include "device/device.h"
#include "render/mesh.h"
#include "render/object.h"
#include "render/scene.h"
#include "render/shader.h"
#include "util/util_foreach.h"
#include "util/util_map.h"
#include "util/util_progress.h"
#include "util/util_set.h"

Go to the source code of this file.

Functions

static CCL_NAMESPACE_BEGIN float3 compute_face_normal (const Mesh::Triangle &t, float3 *verts)
 

Function Documentation

◆ compute_face_normal()

static CCL_NAMESPACE_BEGIN float3 compute_face_normal ( const Mesh::Triangle t,
float3 verts 
)
static

Definition at line 31 of file mesh_displace.cpp.

References cross(), len, make_float3, norm(), t, v1, v2, and verts.

Referenced by GeometryManager::displace().