C# 클래스 GeometryClassLibrary.PolygonListExtensions

파일 보기 프로젝트 열기: ParagonTruss/GeometryClassLibrary

공개 메소드들

메소드 설명
CopyList ( this polygonList ) : List

Copies the list Note: the edges may be oriented differently

DoesShareSideWithPolygonInList ( this polygonsList, Polygon polygonToCheckSidesOf ) : bool

Returns whether or not the polygon has a common side with any of the polygons in this list

FindPolygonsThatAreIntersectedByLine ( this polygonList, Line intersectingLine ) : List

Finds all the polygons in this list that intersect the given line and returns a list of those Polygons

FindPolygonsTouchingPlane ( this polygonList, Plane toSeeIfTouches, bool includeContained = false ) : List

Finds all the polygons in this list that touch the plane passed in. If the includeContained flag is false, it will not return any polygons contained by the the plane

GetAllEdges ( this polygonList ) : List

returns all the edges from a list of polygons

ProjectAllOntoPlane ( this polygonList, Plane plane ) : List
Rotate ( this passedPolygons, Rotation passedRotation ) : List

Rotates the list of polygons with the given rotation

Shift ( this passedPolygon, Shift passedShift ) : List

Shifts the polygons in the list with the given shift

SplitIntoTriangles ( this polygonList ) : List

메소드 상세

CopyList() 공개 정적인 메소드

Copies the list Note: the edges may be oriented differently
public static CopyList ( this polygonList ) : List
polygonList this
리턴 List

DoesShareSideWithPolygonInList() 공개 정적인 메소드

Returns whether or not the polygon has a common side with any of the polygons in this list
public static DoesShareSideWithPolygonInList ( this polygonsList, Polygon polygonToCheckSidesOf ) : bool
polygonsList this The List of Polygons to check if the passed polygon shares a side with
polygonToCheckSidesOf Polygon The polygon to see if any of the polygons in this list share a side with
리턴 bool

FindPolygonsThatAreIntersectedByLine() 공개 정적인 메소드

Finds all the polygons in this list that intersect the given line and returns a list of those Polygons
public static FindPolygonsThatAreIntersectedByLine ( this polygonList, Line intersectingLine ) : List
polygonList this
intersectingLine Line
리턴 List

FindPolygonsTouchingPlane() 공개 정적인 메소드

Finds all the polygons in this list that touch the plane passed in. If the includeContained flag is false, it will not return any polygons contained by the the plane
public static FindPolygonsTouchingPlane ( this polygonList, Plane toSeeIfTouches, bool includeContained = false ) : List
polygonList this The list of polygons to to see if they touch the planes
toSeeIfTouches Plane The plane to see if the polygons touch
includeContained bool If true it will include any polygons in the list that are contained in the plane, false it will not
리턴 List

GetAllEdges() 공개 정적인 메소드

returns all the edges from a list of polygons
public static GetAllEdges ( this polygonList ) : List
polygonList this
리턴 List

ProjectAllOntoPlane() 공개 정적인 메소드

public static ProjectAllOntoPlane ( this polygonList, Plane plane ) : List
polygonList this
plane Plane
리턴 List

Rotate() 공개 정적인 메소드

Rotates the list of polygons with the given rotation
public static Rotate ( this passedPolygons, Rotation passedRotation ) : List
passedPolygons this
passedRotation Rotation
리턴 List

Shift() 공개 정적인 메소드

Shifts the polygons in the list with the given shift
public static Shift ( this passedPolygon, Shift passedShift ) : List
passedPolygon this The polygons to Shift
passedShift Shift The shift to apply
리턴 List

SplitIntoTriangles() 공개 정적인 메소드

public static SplitIntoTriangles ( this polygonList ) : List
polygonList this
리턴 List