<commit_before>catch {load vtktcl}
# this is a tcl version: tests polygonal planes
# include get the vtk interactor ui
source ../../examplesTcl/vtkInt.tcl

vtkPlaneSource plane
    plane SetResolution 4 5
    plane SetOrigin 0 0 1
    plane SetPoint1 2 0 1
    plane SetPoint2 0 3 1
    plane SetCenter 3 2 1
    plane SetNormal 1 2 3
    plane Update
vtkPolyDataMapper planeMapper
    planeMapper SetInput [plane GetOutput]
vtkActor planeActor
    planeActor SetMapper planeMapper
    [planeActor GetProperty] SetRepresentationToWireframe
# create simple poly data so we can apply glyph
vtkPoints pts
    eval pts InsertPoint 0 [plane GetCenter]
vtkNormals normal
    eval normal InsertNormal 0 [plane GetNormal]
vtkPolyData pd
    pd SetPoints pts
    [pd GetPointData] SetNormals normal

vtkConeSource cone
    cone SetResolution 6
vtkTransform transform
    transform Scale .2 .2 .2
    transform Translate 0.5 0.0 0.0
vtkTransformPolyDataFilter transformF
    transformF SetInput [cone GetOutput]
    transformF SetTransform transform<commit_msg>ENH: Testing additional pathway in SetNormal<commit_after>catch {load vtktcl}
# this is a tcl version: tests polygonal planes
# include get the vtk interactor ui
source ../../examplesTcl/vtkInt.tcl

vtkPlaneSource plane
    plane SetResolution 4 5
    plane SetOrigin 0 0 1
    plane SetPoint1 2 0 1
    plane SetPoint2 0 3 1
    plane SetCenter 3 2 1
    plane SetNormal 0 0 1
    plane SetNormal 1 2 3
    plane Update
vtkPolyDataMapper planeMapper
    planeMapper SetInput [plane GetOutput]
vtkActor planeActor
    planeActor SetMapper planeMapper
    [planeActor GetProperty] SetRepresentationToWireframe
# create simple poly data so we can apply glyph
vtkPoints pts
    eval pts InsertPoint 0 [plane GetCenter]
vtkNormals normal
    eval normal InsertNormal 0 [plane GetNormal]
vtkPolyData pd
    pd SetPoints pts
    [pd GetPointData] SetNormals normal

vtkConeSource cone
    cone SetResolution 6
vtkTransform transform
    transform Scale .2 .2 .2
    transform Translate 0.5 0.0 0.0
vtkTransformPolyDataFilter transformF
    transformF SetInput [cone GetOutput]
    transformF SetTransform transform
{'fraction_non_alphanumeric': 0.03288559518295507, 'fraction_numerical': 0.030106530801296896, 'mean_word_length': 3.7472527472527473, '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': '4714317', 'n_tokens_mistral': 692, 'n_tokens_neox': 626, 'n_words': 261}