Navigation
API > API/Plugins > API/Plugins/ModelingComponents
Class representing an adjustable and resizable power-of-two grid in which faces can be selected.
| Name | FCubeGrid |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/CubeGrid.h |
| Include Path | #include "Mechanics/CubeGrid.h" |
Syntax
class FCubeGrid
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCubeGrid() |
Mechanics/CubeGrid.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FCubeGrid() |
Mechanics/CubeGrid.h |
Classes
| Name | Remarks |
|---|---|
| FCubeFace | A face always refers to coordinates in the grid space. |
Enums
Public
| Name | Remarks |
|---|---|
| EFaceDirection | Direction that a face is facing. |
| EPowerMode |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
double GetBaseGridCellSize() |
Mechanics/CubeGrid.h | ||
double GetCellSize
(
uint8 GridPower |
Mechanics/CubeGrid.h | ||
double GetCurrentGridCellSize() |
Mechanics/CubeGrid.h | ||
const FFrame3d & GetFrame() |
Mechanics/CubeGrid.h | ||
FTransform GetFTransform() |
Mechanics/CubeGrid.h | ||
uint8 GetGridPower() |
Mechanics/CubeGrid.h | ||
EPowerMode GetGridPowerMode() |
Mechanics/CubeGrid.h | ||
virtual bool GetHitGridFaceBasedOnRay
(
const FVector3d& WorldHitPoint, |
Mechanics/CubeGrid.h | ||
uint8 GetMaxGridPower() |
Mechanics/CubeGrid.h | ||
void SetBaseGridCellSize
(
double SizeIn |
Mechanics/CubeGrid.h | ||
void SetCurrentGridCellSize
(
double SizeIn |
Mechanics/CubeGrid.h | ||
void SetGridFrame
(
const FFrame3d& FrameIn |
Mechanics/CubeGrid.h | ||
void SetGridPower
(
uint8 PowerIn |
Mechanics/CubeGrid.h | ||
void SetGridPowerMode
(
EPowerMode PowerModeIn |
Mechanics/CubeGrid.h | ||
FVector3d ToGridPoint
(
FVector3d WorldPoint |
Mechanics/CubeGrid.h | ||
FVector3d ToWorldPoint
(
FVector3d GridPoint |
Mechanics/CubeGrid.h | ||
FVector3d ToWorldPoint
(
FVector3d GridPoint, |
Mechanics/CubeGrid.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateCellSize() |
Mechanics/CubeGrid.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int8 DirToFlatDim
(
EFaceDirection DirectionIn |
Convert face direction to the index of the nonzero normal dimension, or equivalently, the dimension in which that face is flat. | Mechanics/CubeGrid.h | |
static FVector3d DirToNormal
(
EFaceDirection DirectionIn |
Convert face direction to its normal. | Mechanics/CubeGrid.h | |
static EFaceDirection FlipDir
(
EFaceDirection DirectionIn |
Get flipped version of a face direction. | Mechanics/CubeGrid.h |