# EdgeGemoetry() rendering edges between co-planar faces

**URL:** <https://discourse.threejs.org/t/edgegemoetry-rendering-edges-between-co-planar-faces/34323>\
**Category:** Questions\
**Tags:** edgesgeometry, angle, mesh\
**Created:** [January 31, 2022, 11:51am UTC](https://discourse.threejs.org/t/edgegemoetry-rendering-edges-between-co-planar-faces/34323 "2022-01-31T11:51:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edforsberg](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/edforsberg/32/24975_2.png) [@edforsberg](https://discourse.threejs.org/u/edforsberg)\
**Post date:** [January 31, 2022, 11:51am UTC](https://discourse.threejs.org/t/edgegemoetry-rendering-edges-between-co-planar-faces/34323/1 "2022-01-31T11:51:43Z")

</div>

Hello!

I have a tricky problem that I need some help with.

I’m rendering a mesh that consists multiple council blocks joined together to create a geometry with orthogonal egdes (see the picture). I’d like to render the edges of this geometry to make it “pop” a bit more, so therefore I want to use

`THREE.EdgesGeometry(geometry, angleThreshold));`.

The problem I’m experiencing is that since angleThreshold is only a single value, all edges between faces with a larger normal angle difference gets rendered, and this makes edged beteen co-planar faces with popsite normal direction render. The reason why I have faces with opposing normal direction is that the mesh comes from a DracoCopmressed string that does not retain the order of the face vertecies and the direction of the normal in three is based on the order of the vertecis in a mesh face.

Anyway, my question is: Do you have any suggestions of how to get around this problem? It could either be by some clever way of alligning the normal direction all co-planar faces in a mesh or somehow trick the EdgesGeometry method into not rendering an edge when the difference of the normal directions are close to 180 degrees.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/4/7/472b15a8ad5e84dccc541e4afad419c0245d0dd3.jpeg)

Thanks!  
Erik
