Wireframe on Objects looks weird

Hi, I’m trying to generate wireframe for a chair, I use the code suggested here (https://codepen.io/scarletsky/pen/zzXQVg?editors=1111).

Problem is, the wireframe only looks good on objects with simple shapes like box and sphere (image 1).

But on other “more complex” objects, they don’t look like what i expected. Here’s the wireframe for one of the other chairs (image 2)

Is the result from image 2 correct? It looks quite “messy” to me plus I’m expecting something like this wireframe sample from the internet (image 3)

The wireframe draws the polys of the model so it all depends on how the model is constructed in the 3D modelling package.


try using this on your entity with model component, that should work correctly