Click or drag to resize
Ab4d.SharpEngine logo

TriangleModelNode Properties

The TriangleModelNode type exposes the following members.

Properties
 NameDescription
Public propertyNormal The normal vector of the triangle. If not set, then it is calculated as a cross product of (P2 - P1) and (P3 - P1). After the normal vector is set manually, it will not be recalculated automatically. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyOffset Offset is used to move the triangle along its normal vector. This can be useful to avoid z-fighting when the triangle is rendered together with other triangles that have the same positions. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method. Default value is 0.
Public propertyP1 The first position of the triangle. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyP2 The second position of the triangle. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyP3 The third position of the triangle. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyTextureCoordinate1 The first texture coordinate of the triangle. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyTextureCoordinate2 The second texture coordinate of the triangle. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Public propertyTextureCoordinate3 The third texture coordinate of the triangle. Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
Top
See Also