unreal.GeometryScriptMeshPointSamplingOptions¶
- class unreal.GeometryScriptMeshPointSamplingOptions(sampling_radius: float = 0.0, max_num_samples: int = 0, random_seed: int = 0, sub_sample_density: float = 0.0, sampling_method_version: int = 0)¶
Bases:
StructBaseGeometry Script Mesh Point Sampling Options
C++ Source:
Plugin: GeometryScripting
Module: GeometryScriptingCore
File: MeshSamplingFunctions.h
Editor Properties: (see get_editor_property/set_editor_property)
max_num_samples(int32): [Read-Write] Maximum number of samples requested. If 0 or default value, mesh will be maximally sampledrandom_seed(int32): [Read-Write] Random Seed used to initialize sampling strategiessampling_method_version(int32): [Read-Write] If < 0, the latest, recommended sampling methods will be used. Otherwise, requests a specific sampling method version. Set this for more consistent results across UE versions, at the risk of worse performance or quality. Valid versions are: Method 0: UE 5.5 and earlier sampling method. Slower initial (dense) point sampling, less robust to degenerate triangles. Method 1: Currently the default method.sampling_radius(float): [Read-Write] Desired “radius” of sample points. Spacing between samples is at least 2x this value.sub_sample_density(double): [Read-Write] Density of subsampling used in Poisson strategy. Larger numbers mean “more accurate” (but slower) results.
- property max_num_samples: int¶
[Read-Write] Maximum number of samples requested. If 0 or default value, mesh will be maximally sampled
- Type:
(int32)
- property random_seed: int¶
[Read-Write] Random Seed used to initialize sampling strategies
- Type:
(int32)
- property sampling_method_version: int¶
[Read-Write] If < 0, the latest, recommended sampling methods will be used. Otherwise, requests a specific sampling method version. Set this for more consistent results across UE versions, at the risk of worse performance or quality. Valid versions are: Method 0: UE 5.5 and earlier sampling method. Slower initial (dense) point sampling, less robust to degenerate triangles. Method 1: Currently the default method.
- Type:
(int32)