Skip to content

Commit 3f06e93

Browse files
committed
Add Tessellate method that takes a new normal for the sweeping direction
Sometimes it's needed to override the sweeping direction to overcome edge cases.
1 parent b8a2bc8 commit 3f06e93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

LibTessDotNet/Sources/Tess.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,12 @@ public void Tessellate(WindingRule windingRule, ElementType elementType, int pol
705705

706706
public void Tessellate(WindingRule windingRule, ElementType elementType, int polySize, CombineCallback combineCallback)
707707
{
708-
_normal = Vec3.Zero;
708+
Tessellate(windingRule, elementType, polySize, null, Vec3.Zero);
709+
}
710+
711+
public void Tessellate(WindingRule windingRule, ElementType elementType, int polySize, CombineCallback combineCallback, Vec3 normal)
712+
{
713+
_normal = normal;
709714
_vertices = null;
710715
_elements = null;
711716

0 commit comments

Comments
 (0)