<commit_before># This example demonstrates adding two implicit models
# to produce an (unexpected!) result

# first we load in the standard vtk packages into tcl
package require vtk
package require vtkinteraction
package require vtktesting

vtkCone geomObject1

vtkSphere geomObject2
    geomObject2 SetRadius 0.5
    geomObject2 SetCenter 0.5 0 0

vtkImplicitSum sum
    sum SetNormalizeByWeight 1
    sum AddFunction geomObject1 2
    sum AddFunction geomObject2 1

vtkSampleFunction sample
    sample SetImplicitFunction sum
    sample SetSampleDimensions 60 60 60
    sample ComputeNormalsOff<commit_msg>ENH: added ComputeNormalsON for better coverage.<commit_after># This example demonstrates adding two implicit models
# to produce an (unexpected!) result

# first we load in the standard vtk packages into tcl
package require vtk
package require vtkinteraction
package require vtktesting

vtkCone geomObject1

vtkSphere geomObject2
    geomObject2 SetRadius 0.5
    geomObject2 SetCenter 0.5 0 0

vtkImplicitSum sum
    sum SetNormalizeByWeight 1
    sum AddFunction geomObject1 2
    sum AddFunction geomObject2 1

vtkSampleFunction sample
    sample SetImplicitFunction sum
    sample SetSampleDimensions 60 60 60
    sample ComputeNormalsOn

{'fraction_non_alphanumeric': 0.019184652278177457, 'fraction_numerical': 0.03357314148681055, 'mean_word_length': 4.539823008849558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4722920', 'n_tokens_mistral': 387, 'n_tokens_neox': 347, 'n_words': 142}