C# 클래스 Triangle, UnityUtils

파일 보기 프로젝트 열기: mortennobel/UnityUtils 1 사용 예제들

공개 메소드들

메소드 설명
Area ( ) : double
ConvertToMesh ( List triangles, string name = "TriangleMesh" ) : Mesh
ConvertToMeshes ( List triangles, string name = "TriangleMesh" ) : List
ConvertToOBJFile ( List triangles, string name = "TriangleMesh", bool removeDuplicateVertices = true ) : string
Cut ( LineSegment2D, line ) : Triangle[],
FlipNormal ( ) : void
GetLineSegments ( ) : LineSegment2D[],
GetShortestEdge ( ) : double
IsIntersecting ( LineSegment2D, ls ) : bool
IsPointInside ( Vector2D, point ) : bool
Midpoint2D ( ) : Vector3D,
ToArray2D ( ) : double[]
ToTriangleList2D ( double data, int count ) : List
Triangle ( ) : System
Triangle ( Vector3D, ps, Vector2D, uvs ) : System
UV ( int i ) : Vector2D,
Vertex ( int i ) : Vector3D,

비공개 메소드들

메소드 설명
ContainsVertex ( Vector3D, p ) : bool
ContainsVertex2D ( Vector3D, p ) : bool
ProjectToTriangle ( Vector3D, point ) : Vector3D,
ReprojectNewVerticesOntoTriangles ( List res, Triangle, clippingTriangles ) : void
ReprojectUVNoY ( List res, bool forceXZLayerProject = true ) : void
ReprojectY ( List res ) : void
ReprojectY ( List res, Plane3D, plane ) : void
V2 ( Vector3D, v ) : Vector2D,

메소드 상세

Area() 공개 메소드

public Area ( ) : double
리턴 double

ConvertToMesh() 공개 정적인 메소드

public static ConvertToMesh ( List triangles, string name = "TriangleMesh" ) : Mesh
triangles List
name string
리턴 Mesh

ConvertToMeshes() 공개 정적인 메소드

public static ConvertToMeshes ( List triangles, string name = "TriangleMesh" ) : List
triangles List
name string
리턴 List

ConvertToOBJFile() 공개 정적인 메소드

public static ConvertToOBJFile ( List triangles, string name = "TriangleMesh", bool removeDuplicateVertices = true ) : string
triangles List
name string
removeDuplicateVertices bool
리턴 string

Cut() 공개 메소드

public Cut ( LineSegment2D, line ) : Triangle[],
line LineSegment2D,
리턴 Triangle[],

FlipNormal() 공개 메소드

public FlipNormal ( ) : void
리턴 void

GetLineSegments() 공개 메소드

public GetLineSegments ( ) : LineSegment2D[],
리턴 LineSegment2D[],

GetShortestEdge() 공개 메소드

public GetShortestEdge ( ) : double
리턴 double

IsIntersecting() 공개 메소드

public IsIntersecting ( LineSegment2D, ls ) : bool
ls LineSegment2D,
리턴 bool

IsPointInside() 공개 메소드

public IsPointInside ( Vector2D, point ) : bool
point Vector2D,
리턴 bool

Midpoint2D() 공개 메소드

public Midpoint2D ( ) : Vector3D,
리턴 Vector3D,

ToArray2D() 공개 메소드

public ToArray2D ( ) : double[]
리턴 double[]

ToTriangleList2D() 공개 정적인 메소드

public static ToTriangleList2D ( double data, int count ) : List
data double
count int
리턴 List

Triangle() 공개 메소드

public Triangle ( ) : System
리턴 System

Triangle() 공개 메소드

public Triangle ( Vector3D, ps, Vector2D, uvs ) : System
ps Vector3D,
uvs Vector2D,
리턴 System

UV() 공개 메소드

public UV ( int i ) : Vector2D,
i int
리턴 Vector2D,

Vertex() 공개 메소드

public Vertex ( int i ) : Vector3D,
i int
리턴 Vector3D,