<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div> According to the documentation, vtkPolyDataNormals is a filter that computes point normals for a polygonal mesh. </div><div><br></div><div>The documentation doesn't make any reference to the capability of the method <table class="memname" style="white-space: nowrap; "><tbody><tr><td class="memname" style="white-space: nowrap; ">vtkPolyDataNormals::ComputeCellNormalsOn</td><td style="">(</td><td class="paramname" style="color: rgb(96, 32, 32); white-space: nowrap; "></td><td style="">) <span class="Apple-style-span" style="white-space: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; ">which is used to turn on the computation of cell normals.</span></td></tr></tbody></table></div><div><br></div><div>Looking at the source code for vtkPolyDataNormals very quickly, the <span class="Apple-style-span" style="font-family: Monaco; font-size: 10px; ">ComputePointNormals </span>is used. So, the question is if this functionality has been fully implemented and the documentation is correct, i.e it only computes point normals and not cell normals. </div><div><br></div><div>Anyone? :-)</div><div><br><div></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><div><br></div><div><br><div><div>On Oct 9, 2008, at 6:00 PM, Elvis Dowson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div> I really need some help with this problem! :-) Guys, I've tried many things, first with a plane source and then with a unstructured grid, converted it to a poly data and used vtkPolyDataNormals and set ComputeCellNormalsOn. It still doesn't give the desired results.</div><div><br></div><div></div><span><pastedGraphic.png></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><div>vtkDataSetSurfaceFilter triangleCellDataSetSurfaceFilter</div><div> triangleCellDataSetSurfaceFilter SetInput aTriangleGrid</div><div><br></div><div>vtkPolyDataNormals triangleCellNormals</div><div> triangleCellNormals SetInputConnection [triangleCellDataSetSurfaceFilter GetOutputPort]</div><div> triangleCellNormals ComputePointNormalsOff</div><div> triangleCellNormals ComputeCellNormalsOn</div><div> triangleCellNormals ConsistencyOn</div><div> triangleCellNormals AutoOrientNormalsOn</div><div><br></div><div>vtkPolyDataNormal::ComputeCellNormalsOn() <span class="Apple-style-span" style="text-decoration: underline;">doesn't seem to be working</span>. There should only be 1 single cell normal, right? I created this example to explicitly use a single triangle cell, to test this funtion.</div><div><br></div><div>I've been at this problem for 2 days straight and tried all sorts of suggestions, but I still haven't found an explanation for describing the above results. Please help!! :-) </div><div><br></div><div>I've attached the full source code with this message.</div><div><br></div><div></div></div><span><TriangleWithSurfaceNormalGlyph2.tcl></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div></div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson </div><div><br></div><div><br></div></div></div></blockquote></div><br></div></div></body></html>