unreal.PCGSelfPruningParameters

class unreal.PCGSelfPruningParameters(pruning_type: PCGSelfPruningType = Ellipsis, comparison_source: PCGAttributePropertyInputSelector = [], radius_similarity_factor: float = 0.0, randomized_pruning: bool = False, use_collision_attribute: bool = False, collision_attribute: PCGAttributePropertyInputSelector = [], collision_query_flag: PCGCollisionQueryFlag = Ellipsis)

Bases: StructBase

PCGSelf Pruning Parameters

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGSelfPruning.h

Editor Properties: (see get_editor_property/set_editor_property)

  • collision_attribute (PCGAttributePropertyInputSelector): [Read-Write] Specifies to use the collision from a given mesh instead of the point; note that this will be ignored in the Remove Duplicates mode.

  • collision_query_flag (PCGCollisionQueryFlag): [Read-Write] Controls whether queries will be done against complex collisions or not. If enabled, performance warning.

  • comparison_source (PCGAttributePropertyInputSelector): [Read-Write] By default, it will prune according to the extents of each point, but you can provide another comparison like Density, or a dynamic attribute. Only support numeric values or vector (vector will be reduced to its squared length).

  • pruning_type (PCGSelfPruningType): [Read-Write]

  • radius_similarity_factor (float): [Read-Write] Similarity factor to consider 2 points “equal”. (For example, if a point extents squared length is 10 and factor is 0.25, all points between 7.5 and 12.5 will be considered “the same”).

  • randomized_pruning (bool): [Read-Write]

  • use_collision_attribute (bool): [Read-Write]

property collision_attribute: PCGAttributePropertyInputSelector

[Read-Write] Specifies to use the collision from a given mesh instead of the point; note that this will be ignored in the Remove Duplicates mode.

Type:

(PCGAttributePropertyInputSelector)

property collision_query_flag: PCGCollisionQueryFlag

[Read-Write] Controls whether queries will be done against complex collisions or not. If enabled, performance warning.

Type:

(PCGCollisionQueryFlag)

property comparison_source: PCGAttributePropertyInputSelector

[Read-Write] By default, it will prune according to the extents of each point, but you can provide another comparison like Density, or a dynamic attribute. Only support numeric values or vector (vector will be reduced to its squared length).

Type:

(PCGAttributePropertyInputSelector)

property pruning_type: PCGSelfPruningType

[Read-Write]

Type:

(PCGSelfPruningType)

property radius_similarity_factor: float

[Read-Write] Similarity factor to consider 2 points “equal”. (For example, if a point extents squared length is 10 and factor is 0.25, all points between 7.5 and 12.5 will be considered “the same”).

Type:

(float)

property randomized_pruning: bool

[Read-Write]

Type:

(bool)

property use_collision_attribute: bool

[Read-Write]

Type:

(bool)