Class TShape

Unit

Declaration

type TShape = class(TShapeTree)

Description

Shape is a geometry node Geometry instance and it's State. For VRML >= 2.0, this usually corresponds to a single instance of actual VRML Shape node. It allows to perform many operations that need to know both geometry and it's current state (parent Shape node, current transformation and such).

This class caches results of methods LocalBoundingBox, BoundingBox, and most others (see TShapeValidities for hints). This means that things work fast, but this also means that you must manually call Changed when you changed some properties of Geometry or contents of State.

But note that you can't change Geometry or State to different objects — they are readonly properties.

Also note that if you're using TCastleSceneCore class then you don't have to worry about calling Changed of items in TCastleSceneCore.Shapes. All you have to do is to call appropriate Changed* methods of TCastleSceneCore.

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

Hierarchy


Generated by PasDoc 0.17.0.snapshot.