unreal.GeometryScript3DGridParameters

class unreal.GeometryScript3DGridParameters(size_method: GeometryScriptGridSizingMethod = Ellipsis, grid_cell_size: float = 0.0, grid_resolution: int = 0)

Bases: StructBase

Parameters for 3D grids, eg grids used for sampling, SDFs, voxelization, etc

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: MeshVoxelFunctions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • grid_cell_size (float): [Read-Write] Use a specific grid cell size, and construct a grid with dimensions large enough to contain the target object

  • grid_resolution (int32): [Read-Write] Use a specific grid resolution, with the grid cell size derived form the target object bounds such that this is the number of cells along the longest box dimension

  • size_method (GeometryScriptGridSizingMethod): [Read-Write] SizeMethod determines how the parameters below will be interpreted to define the size of a 3D sampling/voxel grid

property grid_cell_size: float

[Read-Write] Use a specific grid cell size, and construct a grid with dimensions large enough to contain the target object

Type:

(float)

property grid_resolution: int

[Read-Write] Use a specific grid resolution, with the grid cell size derived form the target object bounds such that this is the number of cells along the longest box dimension

Type:

(int32)

property size_method: GeometryScriptGridSizingMethod

[Read-Write] SizeMethod determines how the parameters below will be interpreted to define the size of a 3D sampling/voxel grid

Type:

(GeometryScriptGridSizingMethod)