C# Класс TechEngine.Engine.Model

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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