edge-coloring.h 475 B

123456789101112131415
  1. #pragma once
  2. #include "Shape.h"
  3. namespace msdfgen {
  4. /** Assigns colors to edges of the shape in accordance to the multi-channel distance field technique.
  5. * May split some edges if necessary.
  6. * angleThreshold specifies the maximum angle (in radians) to be considered a corner, for example 3 (~172 degrees).
  7. * Values below 1/2 PI will be treated as the external angle.
  8. */
  9. void edgeColoringSimple(Shape &shape, double angleThreshold, unsigned long long seed = 0);
  10. }