nicklockwood / Euclid

A Swift library for creating and manipulating 3D geometry
MIT License
644 stars 53 forks source link

Line segment assertion test #58

Closed zilmarinen closed 3 years ago

zilmarinen commented 3 years ago

This PR should reproduce the LineSegment assertions issue raised previously.

Instead of using the encoded mesh I have lazily ported the appropriate code for generating the trunk and foliage as per its (approximate) usage. The assertions do not fire every time but are frequent enough you should be able to catch them in running the example app once or twice.