Function jiao::core::pathops::as_winding

source ·
pub fn as_winding(_path: &Path, _result: &mut Path) -> bool
Expand description

Set the result with fill type winding to area equivalent to path.

Returns true if successful. Does not detect if path contains contours which contain self-crossings or cross other contours; in these cases, may return true even though result does not fill same area as path.

Returns true if operation was able to produce a result; otherwise, result is unmodified. The result may be the input.

§Parameters

  • path - The path typically with fill type set to even odd.
  • result - The equivalent path with fill type set to winding.

Returns true if winding path was set.