StripeClipping¶
Overview¶
Clipping arbitrary (degenerate, non-convex, self-intersecting, etc.) polygons to stripes (clipped between a series of parallel lines).
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class StripeClipping¶
Static Methods¶
binaryStripeClipEdge( startPoint : Vector2, endPoint : Vector2, normal : Vector2, values : number[], fakeCornerPerpendicular : number, clippedEdgeCollection : LinearEdge[][] )¶
line where dot( normal, point ) - value = 0. "min" side is dot-products < value, "max" side is dot-products > value
binaryStripeClipPolygon( polygon : Vector2[], normal : Vector2, values : number[] ) : Vector2[][]¶
line where dot( normal, point ) - value = 0. "min" side is dot-products < value, "max" side is dot-products > value
Source Code¶
See the source for StripeClipping.ts in the alpenglow repository.