[vtkusers] Fill polygons with internal holes

oyster sancho at whu.edu.cn
Mon Dec 7 21:43:25 EST 2015


Hi, Ondrej
If you mean color the individual polygon, you may try:
1. Identify each polygon with vtkPolyDataConnectivityFilter 
2. Determine overlapping order through Boost::Geometry::Polygon, for example

3. I presume your polygons are in 2D space since they are embedded each
other, 
through OVERLAPPING tests you can assign each polygon with a virtual Z
coordinate
denoting depth order, and then let vtkDepthSortPolydata doing the rest
rendering works.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Fill-polygons-with-internal-holes-tp5735370p5735382.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list