 |
TriangleModelNode Properties |
The TriangleModelNode type exposes the following members.
Properties| | Name | Description |
|---|
 | Normal |
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.
|
 | Offset |
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.
|
 | P1 |
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.
|
 | P2 |
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.
|
 | P3 |
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.
|
 | TextureCoordinate1 |
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.
|
 | TextureCoordinate2 |
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.
|
 | TextureCoordinate3 |
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