| 10 | def CreateCoProcessor(): |
| 11 | def _CreatePipeline(coprocessor, datadescription): |
| 12 | class Pipeline: |
| 13 | filename_6_pvti = coprocessor.CreateProducer( datadescription, "input" ) |
| 14 | |
| 15 | Slice1 = Slice( guiName="Slice1", Crinkleslice=0, SliceOffsetValues=[0.0], Triangulatetheslice=1, SliceType="Plane" ) |
| 16 | Slice1.SliceType.Offset = 0.0 |
| 17 | Slice1.SliceType.Origin = [49.5, 49.5, 49.5] |
| 18 | Slice1.SliceType.Normal = [1.0, 0.0, 0.0] |
| 19 | |
| 20 | # create a new 'Parallel PolyData Writer' |
| 21 | parallelPolyDataWriter1 = servermanager.writers.XMLPPolyDataWriter(Input=Slice1) |
| 22 | |
| 23 | # register the writer with coprocessor |
| 24 | # and provide it with information such as the filename to use, |
| 25 | # how frequently to write the data, etc. |
| 26 | coprocessor.RegisterWriter(parallelPolyDataWriter1, filename='slice_{time}.pvtp', freq=10) |
| 27 | |
| 28 | return Pipeline() |
| 29 |
no test coverage detected