ClipPolyWithLine


Summary

 

Methods


Name Description
Method Fast_ClipPolygonWithLine This function has 2 overloads.
MethodBlue Fast_ProcessPartInAndOut Given a line that contains portion both inside and outside of the polygon, this function will split the polygon based only on the segments that completely bisect the polygon. It assumes: out->out, and in->in 2pt segments do not intersect the polygon, and out->in, in->out 2pt segments have only one point of intersection.
Method ProcessAllInside For lines where every point lies within the polygon, this function will find if any 2pt segment crosses through the polygon. If so, it will split the polygon into mutliple parts using the intersecting line segments.
MethodBlue ProcessAllOutside For lines where every point lies outside the polygon, this function will find if any 2pt segment crosses through the polygon. If so, it will split the polygon into mutliple parts using the intersecting line segments.
Method ProcessPartInAndOut Given a line that contains portions both inside and outside of the polygon, this function will split the polygon based only on the segments that completely bisect the polygon. The possibility of mutliple intersections for any 2pt segment is taken into account.
MethodBlue SectionPolygonWithLine Sections a polygon into multiple parts depending on where line crosses it and if previous sectioning has occured.
Method SplitPolyInTwo Splits original polygon into two portions depending on where line crosses it.

Last edited Jan 3, 2011 at 2:11 AM by gngdowid, version 1

Comments

No comments yet.