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>2015-08-05 15:43:51 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-08-05 15:43:51 +0300
commit6cba20a8e60513ce73c4a75f44caafb854b359a1 (patch)
treec661567c8612ea4040c3fb8e7bf7529b43b1f171 /source/blender/blenkernel/intern/CCGSubSurf.h
parent5b76f72904f83a80525cbea9cca4881358961bc0 (diff)
OpenSubdiv: Tweaks to AABB calculation when using opensubdiv for subsurf
Use coarse coordinates to calculate AABB which gives much better approximation of AABB than using unity AABB size.
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf.h')
-rw-r--r--source/blender/blenkernel/intern/CCGSubSurf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf.h b/source/blender/blenkernel/intern/CCGSubSurf.h
index 1649cec1e3d..e9ad4c52531 100644
--- a/source/blender/blenkernel/intern/CCGSubSurf.h
+++ b/source/blender/blenkernel/intern/CCGSubSurf.h
@@ -236,6 +236,8 @@ void ccgSubSurf_evaluatorFVarUV(CCGSubSurf *ss,
void ccgSubSurf_free_osd_mesh(CCGSubSurf *ss);
+void ccgSubSurf_getMinMax(CCGSubSurf *ss, float r_min[3], float r_max[3]);
+
#endif
#endif /* __CCGSUBSURF_H__ */