<div dir="ltr">I think you mean<div><br></div><div>faces = np.concatenate((faces, faces[:, ::-1]), axis=0)</div><div><br></div><div>=)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 10, 2014 at 11:51 AM, Josh Warner <span dir="ltr"><<a href="mailto:silvertrumpet999@gmail.com" target="_blank">silvertrumpet999@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Calculate the gradient for each face, normalize it, and orient the face counterclockwise around the descent of said gradient vector.<br>

<br>It would require some pretty heavy modification, but might be worth it.<br><br>On the other hand, you could potentially hack in a fix (depends on how the STL package works) much easier by making the output double sided. A double-sided mesh has each face twice, covering both orientations This way you'd just append `faces` to itself, reverse indexing to flip the orientation of each face, e.g.<br>

<br>``` python<br>import numpy as np<br>from skimage.measure import marching_cubes<br><br>verts, faces = marching_cubes(vol, value)<br><br>faces = np.concatenate((faces, faces[:, -1], axis=0)<br><br># Remainder of STL export code for faces here<br>

```<br><br>Which would be *far, far* simpler and less computationally intense than dealing with the gradients...<br><br>Would you mind trying this quick fix, Janto?<div><div class="h5"><br><br><br>On Wednesday, January 8, 2014 6:35:28 PM UTC-6, Stefan van der Walt wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">

Josh, you said you had some ideas on how to add this--could you expand?
<br></blockquote></div></div></div><div class="HOEnZb"><div class="h5">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "scikit-image" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:scikit-image%2Bunsubscribe@googlegroups.com" target="_blank">scikit-image+unsubscribe@googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.<br>
</div></div></blockquote></div><br></div>