Skip to content

Latest commit

 

History

History
112 lines (57 loc) · 1.99 KB

hatching.rst

File metadata and controls

112 lines (57 loc) · 1.99 KB

Hatching

ezdxf.render.hatching

This module provides rendering support for hatch patterns as used in ~ezdxf.entities.Hatch and ~ezdxf.entities.MPolygon entities.

High Level Functions

hatch_entity

hatch_polygons

hatch_paths

Classes

HatchBaseLine

hatch_line

pattern_renderer

signed_distance

HatchLine

intersect_line

intersect_cubic_bezier_curve

PatternRenderer

render

Intersection

type

intersection type as IntersectionType instance

p0

(first) intersection point as ~ezdxf.math.Vec2 instance

p1

second intersection point as ~ezdxf.math.Vec2 instance, only if type is COLLINEAR

IntersectionType

NONE

no intersection

REGULAR

regular intersection point at a polygon edge or a Bèzier curve

START

intersection point at the start vertex of a polygon edge

END

intersection point at the end vertex of a polygon edge

COLLINEAR

intersection is collinear to a polygon edge

Line

start

start point as ~ezdxf.math.Vec2 instance

end

end point as ~ezdxf.math.Vec2 instance

distance

signed normal distance to the HatchBaseLine

Helper Functions

hatch_boundary_paths

hatch_line_distances

pattern_baselines

Exceptions

HatchingError

HatchLineDirectionError

DenseHatchingLinesError