Combinations


CombineGeometry

Class containing all the possible combination operations which can be applied to a scalar fields.

Attributes:
  • operations (dict) –

    Dictionary containing all the possible non-parametric operations.

  • parametric_operations (dict) –

    Dictionary containing all the possible parametric operations.

Parameters:
  • operation_type (str) –

    Type of operation with which two or more geometric objects are combined.

available_operations: list property

Available types of operations.

Returns:
  • list

    List of available operations.

available_parametric_operations: list property

Available types of operations which require a parameter.

Returns:
  • list

    List of available parametric operations.

combined_geometry: Callable[[np.ndarray, tuple], np.ndarray] property

Returns the SDF of the combined geometries, which can be used to create a new geometry using GenericGeometry class.

Returns:
  • Callable[[ndarray, tuple], ndarray]

    SDF of the combined geometries

combine(*combined_objects)

Combines 2 or more geometric objects together.

Parameters:
  • combined_objects (object, default: () ) –

    Tuple containing geometric objects.

Returns:
  • GenericGeometry

    New geometric object.

combine_parametric(*combined_objects, parameters)

Combines 2 or more geometric objects together, based on the parameters of the operations. Args: combined_objects: Tuple containing geometric objects. parameters: Parameters of the operation.

Returns:
  • GenericGeometry

    New geometric object.