[Smtk-developers] Polygon model normals

Robert Michael O'Bara bob.obara at kitware.com
Tue Mar 22 22:35:11 EDT 2016


Hey David,

Great - in that the current use case is that shape files we will need to process in the short term will be mainly in Lat/long we might be able to hold off further improvements but I will check on this tomorrow.

Bob

Sent from my iPad

On Mar 17, 2016, at 4:10 PM, David Thompson <david.thompson at kitware.com> wrote:

>> 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
> 
> <Screen Shot 2016-03-17 at 4.08.03 PM.png>


More information about the Smtk-developers mailing list