drwells / fiddle

4 stars 3 forks source link

OverlapTriangulation: redo the way we handle subcell data. #201

Closed drwells closed 11 months ago

drwells commented 11 months ago

The present version is pretty inefficient for two reasons:

  1. Each face and line is present multiple times in SubCellData.
  2. We have to sort the arrays in SubCellData to use them.

Instead, it is much faster to simply copy boundary and manifold ids after creating the new Triangulation: we still have the native cells, after all. This makes setting up a spherical Triangulation about twice as fast.