![]() ![]() The following is a 'Programmable Source' example that generates a Helix curve. Similar to the programmable filter, the output type must be choosen using the "Output Data Set Type" combo-box before hitting Apply. Here's an example that generates a helix. Under the Sources menu, we have the Programmable Source which can be used to produce data using Python. Util.SetOutputWholeExtent(self, )Īlong with processing data, python can be used to produce data i.e. This part of the code is to be placed in the "RequestInformation Script" entry:.copy the values over element by element.choose an input point data array to copy. ![]() create the output dataset with one cell per point.This part of the code is to be placed in the "Script" entry:.and populates its cells with the point centered.this example creates an Nx1x1 imagedata output.The following figure shows a python script that produces an image data output with one cell per point in its input polygonal dataset. Note that the "Output Data Set Type" combo-box in the GUI has been changed to vtkImageData before hitting the Apply button. Here we are taking in vtkPolyData and producing a vtkImageData from it. Here's the above squish script modified to work with multiblock datasets. Readers such as Ensight, Exodus produce multiblock datasets. This result is produced by the following python script set as the Script The following figure shows a python script that modifies the geometry of its input dataset. The GUI also provides a text entry area where the user can type, edit or paste in a python script. The GUI provides a selection menu where the user can choose from the five primary VTK dataset types for the output. The default behavior of the empty script is to create a dataset of the same type as its input and to copy through the input dataset's structure. When the user selects Programmable Filter from the Filters menu, an empty programmable filter is created. 4 Generating Data (Programmable Source). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |