Blender Git Loki

Git Commits -> Revision 5729156

Revision 5729156 by Tamito Kajiyama (master)
February 28, 2012, 20:56 (GMT)
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.

Commit Details:

Full Hash: 5729156c3603fd87b29ad2d7e218fb844015aa7d
SVN Revision: 44534
Parent Commit: 001b8af
Lines Changed: +158, -0

2 Modified Paths:

/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp (+157, -0) (Diff)
/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021