<commit_before>catch {load vtktcl}

# include get the vtk interactor ui
source ../../examplesTcl/vtkInt.tcl
# Generate texture coordinates on a "random" sphere.

# create some random points in a sphere
#
vtkPointSource sphere
  sphere SetNumberOfPoints 25

# triangulate the points
#
vtkDelaunay3D del
  del SetInput [sphere GetOutput]
  del SetTolerance 0.01
    
# texture map the sphere (using cylindrical coordinate system)
#
vtkGeometryFilter toGeom
  toGeom SetInput [del GetOutput]

vtkTextureMapToCylinder tmapper
  tmapper SetInput [toGeom GetOutput]
  tmapper PreventSeamOn

vtkCastToConcrete castToPoly
  castToPoly SetInput [tmapper GetOutput]

vtkButterflySubdivisionFilter butterfly
  butterfly SetInput [castToPoly GetPolyDataOutput]
  butterfly SetNumberOfSubdivisions 4

vtkDataSetMapper mapper
  mapper SetInput [butterfly GetOutput]

# load in the texture map and assign to actor
#
vtkBMPReader bmpReader
  bmpReader SetFileName "../../../vtkdata/masonry.bmp"
vtkTexture atext
  atext SetInput [bmpReader GetOutput]
  atext InterpolateOn
vtkActor triangulation<commit_msg>ENH: vtkGeometry now passes points thru unchanged. This changed TCoord calculation. Added a clean to produce same results.<commit_after>catch {load vtktcl}

# include get the vtk interactor ui
source ../../examplesTcl/vtkInt.tcl
# Generate texture coordinates on a "random" sphere.

# create some random points in a sphere
#
vtkPointSource sphere
  sphere SetNumberOfPoints 25

# triangulate the points
#
vtkDelaunay3D del
  del SetInput [sphere GetOutput]
  del SetTolerance 0.01
    
# texture map the sphere (using cylindrical coordinate system)
#
vtkGeometryFilter toGeom
  toGeom SetInput [del GetOutput]

vtkCleanPolyData clean
  clean SetInput [toGeom GetOutput]

vtkTextureMapToCylinder tmapper
  tmapper SetInput [clean GetOutput]
  tmapper PreventSeamOn

vtkCastToConcrete castToPoly
  castToPoly SetInput [tmapper GetOutput]

vtkButterflySubdivisionFilter butterfly
  butterfly SetInput [castToPoly GetPolyDataOutput]
  butterfly SetNumberOfSubdivisions 4

vtkDataSetMapper mapper
  mapper SetInput [butterfly GetOutput]

# load in the texture map and assign to actor
#
vtkBMPReader bmpReader
  bmpReader SetFileName "../../../vtkdata/masonry.bmp"
vtkTexture atext
  atext SetInput [bmpReader GetOutput]
  atext InterpolateOn
vtkActor triangulation
{'fraction_non_alphanumeric': 0.05021276595744681, 'fraction_numerical': 0.005957446808510639, 'mean_word_length': 5.090673575129534, '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': '5513980', 'n_tokens_mistral': 772, 'n_tokens_neox': 746, 'n_words': 240}