On Mar 23, 2007, at 3:48 PM, Charless Fowlkes wrote:

Followed your instructions and I get the same problem.

great!  i feel a bit less crazy now :-)

We never said you were "crazy"... not in so many words, anyway...

actually, i just found the "bug"

in meshes/numMesh/mesh.py,  _getOrderedCellVertexIDs had
been commented out and replaced with a call to getCellVertexIDs
which doesn't return the correct order.  uncommenting this results
in the correct ordering being exported to mayaviviewer.

Wow. Thanks for the archaeology. For the record, it was introduced here <https://www.matforge.org/fipy/changeset/1415> but was apparently never used.

i've played with a variety of geometry viewers over the last
couple years.   without exception, they have all required that
the faces be specified by listing the verticies in order with respect
to the surface normal as rendering pipelines tend to use the
same cross-product as this bit of code:

 fipy/meshes/numMesh/mesh._calcFaceNormals()

so it's probably worth keeping track of orientations.

Good point.


Reply via email to