unreal.GeometryScriptConvexDecompositionOptions

class unreal.GeometryScriptConvexDecompositionOptions(num_hulls: int = 0, search_factor: float = 0.0, error_tolerance: float = 0.0, min_part_thickness: float = 0.0, simplify_to_face_count: int = 0)

Bases: StructBase

Geometry Script Convex Decomposition Options

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: ContainmentFunctions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • error_tolerance (double): [Read-Write] Error Tolerance: Error tolerance to guide convex decomposition (in cm); we stop adding new parts if the volume error is below the threshold. For volumetric errors, value will be cubed.

  • min_part_thickness (double): [Read-Write] Min Part Thickness: Minimum part thickness for convex decomposition (in cm); hulls thinner than this will be merged into adjacent hulls, if possible.

  • num_hulls (int32): [Read-Write] Num Hulls: How many convex pieces to target per mesh when creating convex decompositions. If ErrorTolerance is set, can create fewer pieces.

  • search_factor (double): [Read-Write] Search Factor: How much additional decomposition decomposition + merging to do, as a fraction of max pieces. Larger values can help better-cover small features, while smaller values create a cleaner decomposition with less overlap between hulls.

  • simplify_to_face_count (int32): [Read-Write] Simplify to Face Count: Try to simplify each convex hull to this triangle count. If 0, no simplification

property error_tolerance: float

[Read-Write] Error Tolerance: Error tolerance to guide convex decomposition (in cm); we stop adding new parts if the volume error is below the threshold. For volumetric errors, value will be cubed.

Type:

(double)

property min_part_thickness: float

[Read-Write] Min Part Thickness: Minimum part thickness for convex decomposition (in cm); hulls thinner than this will be merged into adjacent hulls, if possible.

Type:

(double)

property num_hulls: int

[Read-Write] Num Hulls: How many convex pieces to target per mesh when creating convex decompositions. If ErrorTolerance is set, can create fewer pieces.

Type:

(int32)

property search_factor: float

[Read-Write] Search Factor: How much additional decomposition decomposition + merging to do, as a fraction of max pieces. Larger values can help better-cover small features, while smaller values create a cleaner decomposition with less overlap between hulls.

Type:

(double)

property simplify_to_face_count: int

[Read-Write] Simplify to Face Count: Try to simplify each convex hull to this triangle count. If 0, no simplification

Type:

(int32)