C# 클래스 R3.Drawing.TextureHelper

파일 보기 프로젝트 열기: roice3/Honeycombs

공개 메소드들

메소드 설명
SetupElementIndices ( Polygon poly ) : void

Sets up our list of element indices

TextureCoords ( Polygon poly, Geometry g, bool doGeodesicDome = false ) : Vector3D[]

Helper to generate a set of texture coordinates. ZZZ - make this a non-euclidean calc?

TextureElements ( int numBaseTriangles, int LOD ) : int[]

Grabs an array of indices into the coordinate array for TextureCoords. The array represents individual triangles (each set of 3 is one triangle).

TextureHelper ( ) : System.Collections.Generic

비공개 메소드들

메소드 설명
CalcPointsUsingRecursion ( int level, Vector3D p1, Vector3D p2, Vector3D p3, Geometry g ) : Vector3D[]
CalcPointsUsingTwoSegments ( Segment seg1, Segment seg2, int divisions, Geometry g ) : Vector3D[]
CalcViaProjections ( Vector3D p1, Vector3D p2, Vector3D p3, int divisions, Geometry g ) : Vector3D[]
FindClosestPoint ( Vector3D v, Vector3D list ) : Vector3D
SubdivideRadialInGeometry ( Segment radial, int divisions, Geometry g ) : Vector3D[]

Equally subdivides a segment with a startpoint at the origin, in the respective geometry.

SubdivideSegmentInGeometry ( Vector3D p1, Vector3D p2, int divisions, Geometry g ) : Vector3D[]

Subdivides a segment from p1->p2 with the two endpoints not on the origin, in the respective geometry.

TriangularNumber ( int n ) : int

Returns the sum of all the integers up to and including n.

메소드 상세

SetupElementIndices() 공개 메소드

Sets up our list of element indices
public SetupElementIndices ( Polygon poly ) : void
poly Polygon
리턴 void

TextureCoords() 공개 정적인 메소드

Helper to generate a set of texture coordinates. ZZZ - make this a non-euclidean calc?
public static TextureCoords ( Polygon poly, Geometry g, bool doGeodesicDome = false ) : Vector3D[]
poly Polygon
g Geometry
doGeodesicDome bool
리턴 Vector3D[]

TextureElements() 공개 정적인 메소드

Grabs an array of indices into the coordinate array for TextureCoords. The array represents individual triangles (each set of 3 is one triangle).
public static TextureElements ( int numBaseTriangles, int LOD ) : int[]
numBaseTriangles int
LOD int
리턴 int[]

TextureHelper() 공개 메소드

public TextureHelper ( ) : System.Collections.Generic
리턴 System.Collections.Generic