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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-02-29 00:56:31 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-02-29 00:56:31 +0400
commit5729156c3603fd87b29ad2d7e218fb844015aa7d (patch)
treef4ffc57965f412148a3001daba5b871f71544023 /source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
parent001b8af4ffa01ac0ccfb1c4d7e392bbc2219cf7d (diff)
Experimental fix for degenerate triangles in imported mesh data.
This commit is an attempt to address degenerate triangles (i.e., triangles whose area is zero) that cause incorrect line visibility in Freestyle. There are two forms of degenerate triangles. Let A, B and P denote the three vertices of a triangle. A degenerate triangle is a triangle such that 1) A and B are in the same position in the 3D space, or 2) the distance between point P and line segment AB is zero. Note that the first form is a special case of the second form. Degenerate triangles in the first form is easy to remove by the Remove Doubles command. This commit is intended to address those degenerate triangles in the second form. The implemented fix cannot address degenerate triangles in general. It fails when a triangle touches with multiple degenerate triangles. A more general solution needs to be implemented.
Diffstat (limited to 'source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h')
-rw-r--r--source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
index 94ea0784a30..2e3c9da2814 100644
--- a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
+++ b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
@@ -12,6 +12,7 @@
# include "../geometry/BBox.h"
# include "../geometry/Geom.h"
# include "../geometry/GeomCleaner.h"
+# include "../geometry/GeomUtils.h"
#ifdef __cplusplus
extern "C" {