Record TTriangleHelper

Unit

Declaration

type TTriangleHelper = record helper for TTriangle

Description

Triangle in a 3D model. Helper methods.

Source: scene/castleshapes.pas (line 133).

Overview

Methods

Public function Shape: TShape;
Public function State: TX3DGraphTraverseState;
Public procedure UpdateSceneSpace;
Public procedure UpdateWorld; deprecated 'use UpdateSceneSpace';
Public function ShapeNode: TAbstractShapeNode;
Public function MaterialInfo: TMaterialInfo;
Public function Transparency: Single;
Public function IsTransparent: boolean;
Public function IgnoreForShadowRays: boolean;

Description

Methods

Public function Shape: TShape;

Shape containing this triangle.

Source: scene/castleshapes.pas (line 135).

Public function State: TX3DGraphTraverseState;

State of this shape, containing various information about 3D shape. This is a shortcut for Shape.State.

Source: scene/castleshapes.pas (line 139).

Public procedure UpdateSceneSpace;

Use State.Transform to update TTriangle.SceneSpace geometry from TTriangle.Local geometry.

Source: scene/castleshapes.pas (line 143).

Public procedure UpdateWorld; deprecated 'use UpdateSceneSpace';

Warning: this symbol is deprecated: use UpdateSceneSpace

This item has no description.

Source: scene/castleshapes.pas (line 145).

Public function ShapeNode: TAbstractShapeNode;

X3D shape node of this triangle. May be Nil in case of VRML 1.0.

Source: scene/castleshapes.pas (line 148).

Public function MaterialInfo: TMaterialInfo;

Material information for the material of this triangle. See TMaterialInfo for usage description. Returns Nil when no node determines material properties (which indicates white unlit look).

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.

Source: scene/castleshapes.pas (line 158).

Public function Transparency: Single;

Return transparency of this triangle's material. Equivalent to MaterialInfo.Transparency, although a little faster.

Source: scene/castleshapes.pas (line 162).

Public function IsTransparent: boolean;

Returns True for triangles that are transparent.

Source: scene/castleshapes.pas (line 165).

Public function IgnoreForShadowRays: boolean;

Returns True for triangles that should be ignored by shadow rays. Returns True for transparent triangles (with Material.Transparency > 0) and non-shadow-casting triangles (with Appearance.shadowCaster = FALSE).

Source: scene/castleshapes.pas (line 171).


Generated by PasDoc 0.17.0.snapshot.