<h5 dir="auto">Description of the problem</h5>
<p dir="auto">I'm trying to render only the edges of the geometry below but I am getting unwanted edges specifically the ones in violet line. The green lines represent the ones generated by an EdgesGeometry with threshold 1 and the faded grey lines are generated by a WireframeGeometry for examination of the whole geometry of the object.</p>
<p dir="auto">Green lines:<br>
<code class="notranslate">  const edgesGeometry = new EdgesGeometry(geometry, 1); const edges = new THREE.LineSegments(edgesGeometry, this._brickEdgesMaterial);</code></p>
<p dir="auto">Grey lines:<br>
<code class="notranslate">const wireframeGeometry = new WireframeGeometry(geometry); const wireframe = new THREE.LineSegments(wireframeGeometry, this._brickWireframeMaterial);</code></p>
<p dir="auto">*Violet lines were edited in</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5621894/37564137-9f437ca8-2aca-11e8-8947-98f2bc2cad81.PNG"><img src="https://user-images.githubusercontent.com/5621894/37564137-9f437ca8-2aca-11e8-8947-98f2bc2cad81.PNG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">Also. Here's the geometry in json format generated through Geometry.toJSON(). File is in txt format because github does not allow json file uploads.</p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/files/1822495/geometry.txt">geometry.txt</a></p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r91</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r89</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">The EdgesGeometry takes all the cords shared between faces and if the faces are not coplanar (or their "dot" is less than the thresholdDot) then it shows them as edges.</p>
<p dir="auto">The problem is that in some cases a cord is the sum of two other cords in two different faces. In this case the cord is shown as edge even if its's not.</p>
<p dir="auto">This is the wireframe:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5675600/21715998/01b68580-d408-11e6-911c-d43090dbc16d.png"><img src="https://cloud.githubusercontent.com/assets/5675600/21715998/01b68580-d408-11e6-911c-d43090dbc16d.png" alt="screen shot 2017-01-06 at 12 02 01" style="max-width: 100%;"></a></p>
<p dir="auto">and this is with the EdgesGeometry:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5675600/21715997/01b2fcf8-d408-11e6-9175-f8628cd184c6.png"><img src="https://cloud.githubusercontent.com/assets/5675600/21715997/01b2fcf8-d408-11e6-9175-f8628cd184c6.png" alt="screen shot 2017-01-06 at 12 01 44" style="max-width: 100%;"></a></p>
<p dir="auto">I'm thinking we should, for each cord, check if there is a vertex in it, and if so, split the face in two using that vertex.<br>
Any idea on how we could do it?</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r82</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li>
</ul>