[Smtk-developers] Polygon model normals
David Thompson
david.thompson at kitware.com
Thu Mar 17 16:10:24 EDT 2016
> I've found what's causing the bad shading and small "holidays" when testing Yumin's shapefile importer (but not the other problem yet). ...
I've pushed a fix to the polygon-session's "import" operator that gets it loading some shapefiles correctly. It will load files like the "countries.shp" file that ParaView tests but with errors; this is because that particular shapefile stores multiple faces in a single polygon (polygons are allowed to have multiple parts, each of which is an outer loop plus inner loops).
However, the problem that led to tessellations with notches in them was that the "import" operator was not populating the "counts" item of the "force create face" operator it calls under the hood. This is required so that the the operator knows which edges are part of the outer loop and which ones form inner loops.
Attached is a screenshot created by running the (new) polygonImportPy test in interactive mode:
python /path/to/smtk/bridge/polygon/testing/python/polygonImport.py -D /path/to/SMTKTestData -I
You can see that some countries have proper tessellations while others do not.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20160317/5df61a26/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2016-03-17 at 4.08.03 PM.png
Type: image/png
Size: 50040 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20160317/5df61a26/attachment-0001.png>
More information about the Smtk-developers
mailing list