- int retval = nsc_dclm_pbc(surfaceSel.coordinates().data(), &radii_[0],
- frameData.index_.size(), ndots_, flag, &totarea,
- &area, &totvolume, &surfacedots, &nsurfacedots,
- &frameData.index_[0],
- pbc != NULL ? pbc->ePBC : epbcNONE,
- pbc != NULL ? pbc->box : NULL);
+ calculator_.calculate(surfaceSel.coordinates().data(), pbc,
+ frameData.index_.size(), &frameData.index_[0], flag,
+ &totarea, &totvolume, &area,
+ &surfacedots, &nsurfacedots);