Skip to content

Use earcut to triangulate polylist/polygons#215

Open
lasalvavida wants to merge 2 commits intomainfrom
earcut
Open

Use earcut to triangulate polylist/polygons#215
lasalvavida wants to merge 2 commits intomainfrom
earcut

Conversation

@lasalvavida
Copy link
Copy Markdown
Contributor

For #201

This goes along with transparency changes so that we don't introduce visual artifacts with transparent polygons. Overall, polygon/polylist meshes conversion should also produce smaller models.

@lasalvavida
Copy link
Copy Markdown
Contributor Author

lasalvavida commented Nov 13, 2018

Comparison with BoxAnimated whose rectangular faces are made of four point polygons.

Before (19.7kb)

image

After (15.3kb)

image

@liaoweiqi1997
Copy link
Copy Markdown

Does that reduce the number of triangles and points in the model?

@lasalvavida
Copy link
Copy Markdown
Contributor Author

lasalvavida commented Dec 17, 2018

Does that reduce the number of triangles and points in the model?

Only if those triangles/points are redundant/degenerate. As it is, this would only be applied for polygon conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants