Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Mechanics
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/CubeGrid.h |
| Include | #include "Mechanics/CubeGrid.h" |
Syntax
class FCubeGrid
Remarks
Class representing an adjustable and resizable power-of-two grid in which faces can be selected.
Variables
| Type | Name | Description | |
|---|---|---|---|
| double | BaseGridCellSize | ||
| double | CurrentCellSize | This should always be BaseGridCellSize * 2^CurrentGridPower. | |
| uint8 | CurrentGridPower | ||
| FFrame3d | GridFrame | ||
| EPowerMode | GridPowerMode |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCubeGrid () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FCubeGrid () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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. | |
| FVector3d |
DirToNormal
(
EFaceDirection DirectionIn |
Convert face direction to its normal. | |
| EFaceDirection | FlipDir
(
EFaceDirection DirectionIn |
Get flipped version of a face direction. | |
| double | |||
| double | GetCellSize
(
uint8 GridPower |
||
| double | |||
| const FFrame3d & | GetFrame () |
||
| FTransform | |||
| uint8 | GetGridPower () |
||
| EPowerMode | |||
| bool | GetHitGridFaceBasedOnRay
(
const FVector3d& WorldHitPoint, |
||
| uint8 | |||
| void | SetBaseGridCellSize
(
double SizeIn |
||
| void | SetCurrentGridCellSize
(
double SizeIn |
||
| void | SetGridFrame
(
const FFrame3d& FrameIn |
||
| void | SetGridPower
(
uint8 PowerIn |
||
| void | SetGridPowerMode
(
EPowerMode PowerModeIn |
||
| FVector3d | ToGridPoint
(
FVector3d WorldPoint |
||
| FVector3d | ToWorldPoint
(
FVector3d GridPoint |
||
| FVector3d | ToWorldPoint
(
FVector3d GridPoint, |
||
| void |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCubeFace | A face always refers to coordinates in the grid space. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFaceDirection | Direction that a face is facing. | ||
| EPowerMode |