Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-10-10 11:12:06 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-10-11 11:18:59 +0300
commita4216075696ba3e067a5655d0465ae8ab5dd6238 (patch)
tree9e80f94dc3882318fdd5d353cfaf596cc135261e /intern/cycles/render/mesh.h
parent552d15c97698ac4270c462385a9b111f6e8329c3 (diff)
Cycles: Add utility function to calculate triangle's normal
Diffstat (limited to 'intern/cycles/render/mesh.h')
-rw-r--r--intern/cycles/render/mesh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/mesh.h b/intern/cycles/render/mesh.h
index 9a51ca73950..3483ab4fd69 100644
--- a/intern/cycles/render/mesh.h
+++ b/intern/cycles/render/mesh.h
@@ -70,6 +70,8 @@ public:
size_t num_steps,
size_t step,
float3 r_verts[3]) const;
+
+ float3 compute_normal(const float3 *verts) const;
};
Triangle get_triangle(size_t i) const