Record TTriangleHelper
Unit
Declaration
type TTriangleHelper = record helper for TTriangle
Description
Triangle in a 3D model. Helper methods.
Overview
Methods
function Shape: TShape; |
|
function State: TX3DGraphTraverseState; |
|
procedure UpdateWorld; |
|
function ShapeNode: TAbstractShapeNode; |
|
function MaterialInfo: TMaterialInfo; |
|
function Transparency: Single; |
|
function IsTransparent: boolean; |
|
function IgnoreForShadowRays: boolean; |
|
function INormalWorldSpace(const Point: TVector3): TVector3; |
Description
Methods
function Shape: TShape; |
|
Shape containing this triangle. |
function State: TX3DGraphTraverseState; |
|
State of this shape, containing various information about 3D shape. This is a shortcut for Shape.State. |
procedure UpdateWorld; |
|
Use State.Transform to update triangle TTriangle.World geometry from triangle TTriangle.Local geometry. |
function ShapeNode: TAbstractShapeNode; |
|
X3D shape node of this triangle. May be |
function MaterialInfo: TMaterialInfo; |
|
Material information for the material of this triangle. See TMaterialInfo for usage description. Returns Returned TMaterialInfo is valid only as long as the underlying node (TMaterialNode, TPhysicalMaterialNode, TUnlitMaterialNode, TCommonSurfaceShaderNode...) exists. Do not free it yourself, it will be automatically freed. |
function Transparency: Single; |
|
Return transparency of this triangle's material. Equivalent to MaterialInfo.Transparency, although a little faster. |
function IsTransparent: boolean; |
|
Returns |
function INormalWorldSpace(const Point: TVector3): TVector3; |
|
For a given position (in world coordinates), return the smooth normal vector at this point, with the resulting normal vector in world coordinates. See also
|
Generated by PasDoc 0.16.0-snapshot.