void displayFacet( Viewer & viewer, const ToDGtal & toDGtal, const Facet & f, const DGtal::Color & col ) { typedef typename ToDGtal::Point3 Point; Point a( f.first->vertex( (f.second+1)%4 )->point() ); Point b( f.first->vertex( (f.second+2)%4 )->point() ); Point c( f.first->vertex( (f.second+3)%4 )->point() ); RealPointZ3 A( a[ 0 ], a[ 1 ], a[ 2 ] ); RealPointZ3 B( b[ 0 ], b[ 1 ], b[ 2 ] ); RealPointZ3 C( c[ 0 ], c[ 1 ], c[ 2 ] ); viewer.setFillColor( col ); viewer.addTriangle( A, B, C ); }