C# 클래스 TechEngine.Engine.Model

파일 보기 프로젝트 열기: DotTech/3D-software-renderer 1 사용 예제들

공개 메소드들

메소드 설명
AddTriangle ( int v0, int v1, int v2 ) : void
AddVertex ( double x, double y, double z, double intensity = 1 ) : void
CalculateColors ( ) : void

Call once after loading the model

CenterModel ( ) : void

Adjust vertex coordinates so that point 0,0,0 is the center of the model

Model ( ) : System
Transform ( Vector3 camera, double scale ) : void

Performs all transformations required for one rendering cycle

비공개 메소드들

메소드 설명
BackfaceCulling ( ) : void
CenterPivot ( ) : void

Center the pivot in object space

ProjectVertices ( Vector3 camera, double scale ) : void
Rotate ( ) : void

Perform rotation

Rotate ( Vector3 angles ) : void
SortDepthBuffer ( ) : void

Sort the triangles descending by the sum of all vertices Z value

TransformToCameraSpace ( Vector3 camera ) : void

메소드 상세

AddTriangle() 공개 메소드

public AddTriangle ( int v0, int v1, int v2 ) : void
v0 int
v1 int
v2 int
리턴 void

AddVertex() 공개 메소드

public AddVertex ( double x, double y, double z, double intensity = 1 ) : void
x double
y double
z double
intensity double
리턴 void

CalculateColors() 공개 메소드

Call once after loading the model
public CalculateColors ( ) : void
리턴 void

CenterModel() 공개 메소드

Adjust vertex coordinates so that point 0,0,0 is the center of the model
public CenterModel ( ) : void
리턴 void

Model() 공개 메소드

public Model ( ) : System
리턴 System

Transform() 공개 메소드

Performs all transformations required for one rendering cycle
public Transform ( Vector3 camera, double scale ) : void
camera Vector3
scale double
리턴 void