unreal.GeometryScriptPointClusteringOptions

class unreal.GeometryScriptPointClusteringOptions(initial_cluster_centers: None = [], target_num_clusters: int = 0, initialize_method: GeometryScriptInitKMeansMethod = Ellipsis, random_seed: int = 0, max_iterations: int = 0)

Bases: StructBase

Geometry Script Point Clustering Options

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: PointSetFunctions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • initial_cluster_centers (Array[Vector]): [Read-Write] If not empty, will be used instead of Target Num Clusters. Specifies the initial cluster centers to use.

  • initialize_method (GeometryScriptInitKMeansMethod): [Read-Write] Method to initialize the cluster centers, if Initial Cluster Centers is empty

  • max_iterations (int32): [Read-Write] Maximum iterations to run the clustering process. Will stop earlier if/when clustering converges.

  • random_seed (int32): [Read-Write] Random Seed used to initialize clustering, if the Random cluster initialization is chosen

  • target_num_clusters (int32): [Read-Write] Number of clusters requested, if Initial Cluster Centers is empty. Actual clusters generated may be smaller, e.g. if there are fewer points

property initial_cluster_centers: None

[Read-Write] If not empty, will be used instead of Target Num Clusters. Specifies the initial cluster centers to use.

Type:

(Array[Vector])

property initialize_method: GeometryScriptInitKMeansMethod

[Read-Write] Method to initialize the cluster centers, if Initial Cluster Centers is empty

Type:

(GeometryScriptInitKMeansMethod)

property max_iterations: int

[Read-Write] Maximum iterations to run the clustering process. Will stop earlier if/when clustering converges.

Type:

(int32)

property random_seed: int

[Read-Write] Random Seed used to initialize clustering, if the Random cluster initialization is chosen

Type:

(int32)

property target_num_clusters: int

[Read-Write] Number of clusters requested, if Initial Cluster Centers is empty. Actual clusters generated may be smaller, e.g. if there are fewer points

Type:

(int32)