mitredExtrude function bug?

It seems to be a bug with mitredExtrude function:

lower the radius will be ok:

PG: https://playground.babylonjs.com/#ITB9I0#6

Hello @kikoshoung , thanks for pointing that out!

You are right, the current mitredExtrude function was not considering an edge case when building the data.

I added a fix for that in the following playground:

Babylon.js Playground (babylonjs.com)

I will be updating the documentation with the fixed version of the function!
Please let me know if you find any new weird behavior.

2 Likes

Great! This bug has been fixed.
Thanks so much.

2 Likes