| 83 | } |
| 84 | |
| 85 | void generatePSDF(const BitmapSection<float, 1> &output, const Shape &shape, const SDFTransformation &transformation, const GeneratorConfig &config) { |
| 86 | if (config.overlapSupport) |
| 87 | generateDistanceField<OverlappingContourCombiner<PerpendicularDistanceSelector> >(output, shape, transformation); |
| 88 | else |
| 89 | generateDistanceField<SimpleContourCombiner<PerpendicularDistanceSelector> >(output, shape, transformation); |
| 90 | } |
| 91 | |
| 92 | void generateMSDF(const BitmapSection<float, 3> &output, const Shape &shape, const SDFTransformation &transformation, const MSDFGeneratorConfig &config) { |
| 93 | if (config.overlapSupport) |
no test coverage detected