FMX.Objects3D.TMeshWrapMode

From RAD Studio API Documentation

Delphi

TMeshWrapMode = (Original, Fit, Stretch, Resize);

C++

enum class DECLSPEC_DENUM TMeshWrapMode : unsigned char { Original, Fit, Stretch, Resize };

Properties

Type Visibility Source Unit Parent
enum public
FMX.Objects3D.pas
FMX.Objects3D.hpp
FMX.Objects3D FMX.Objects3D

Description

Specifies how a 3D object should fit in the bounding box of a control.

The following table shows the values of TMeshWrapMode and a brief description of them.

Value Description Figure

Fit

The 3D object is scaled until it fits in the bounding box of a control (the 3D object maintains its proportions). This is the default value for TModel3D.

Original

The 3D object is placed taking the center of the control as the coordinates origin. The 3D object is scaled relatively to the owner of the 3D object. For example, if the owner changes its size from (1, 1, 1) to (2, 2, 2), the size of the 3D object doubles. You can use Original wrap mode to ensure backwards compatibility.

Note: Original is not the default wrap mode of TModel3D because the main purpose of TModel3D is to import meshes.

Resize

The control adapts its size so that the 3D object fits inside (the 3D object is not changed as in Original wrap mode).

Stretch

The 3D object is expanded until it fits in the bounding box of a control (the 3D object can lose its proportions). This is the default value for TShape3D.

See Also