C# Класс Axiom.Graphics.EdgeData

This class contains the information required to describe the edge connectivity of a given set of vertices and indexes.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
edgeGroups EdgeGroupList
triangles TriangleList

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

Метод Описание
DebugLog ( Log log ) : void
UpdateFaceNormals ( int vertexSet, HardwareVertexBuffer positionBuffer ) : void

Updates the face normals for this edge list based on (changed) position information, useful for animated objects.

UpdateTriangleLightFacing ( Vector4 lightPos ) : void

Calculate the light facing state of the triangles in this edge list.

This is normally the first stage of calculating a silhouette, ie establishing which tris are facing the light and which are facing away. This state is stored in the 'lightFacing' flag in each Triangle.

Описание методов

DebugLog() публичный метод

public DebugLog ( Log log ) : void
log Log
Результат void

UpdateFaceNormals() публичный метод

Updates the face normals for this edge list based on (changed) position information, useful for animated objects.
public UpdateFaceNormals ( int vertexSet, HardwareVertexBuffer positionBuffer ) : void
vertexSet int The vertex set we are updating.
positionBuffer HardwareVertexBuffer The updated position buffer, must contain ONLY xyz.
Результат void

UpdateTriangleLightFacing() публичный метод

Calculate the light facing state of the triangles in this edge list.
This is normally the first stage of calculating a silhouette, ie establishing which tris are facing the light and which are facing away. This state is stored in the 'lightFacing' flag in each Triangle.
public UpdateTriangleLightFacing ( Vector4 lightPos ) : void
lightPos Vector4 /// 4D position of the light in object space, note that /// for directional lights (which have no position), the w component /// is 0 and the x/y/z position are the direction. ///
Результат void

Описание свойств

edgeGroups защищенное свойство

List of edge groups.
protected EdgeGroupList edgeGroups
Результат EdgeGroupList

triangles защищенное свойство

List of triangles.
protected TriangleList triangles
Результат TriangleList