unreal.GeometryScript3DGridParameters

class unreal.GeometryScript3DGridParameters(size_method=GeometryScriptGridSizingMethod.GRID_RESOLUTION, grid_cell_size=0.5, grid_resolution=64)

Bases: unreal.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] Grid Cell Size: Use a specific grid cell size, and construct a grid with dimensions large enough to contain the target object

  • grid_resolution (int32): [Read-Write] Grid Resolution: 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] Size Method: SizeMethod determines how the parameters below will be interpreted to define the size of a 3D sampling/voxel grid

property grid_cell_size

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

Type

(float)

property grid_resolution

[Read-Write] Grid Resolution: 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

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

Type

(GeometryScriptGridSizingMethod)