BasicTools.Bridges.vtkBridge module

BasicTools.Bridges.vtkBridge.AddCellsFromVtkCellArrayToMesh(cells: vtkCellArray, cellTypesArray: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], out: UnstructuredMesh)[source]

Function to migrate cells from a vtkCellArray to a BasicTools Unstructured Mesh

Parameters:
  • cells (vtkCellArray) – the cell to be created in the mehs

  • cellTypesArray (ArrayLike) – the vtk cell type to use for in the vtkCellArray. In the case is none we infer the type of cell from the number of nodes (for the polys in a vtkPolyData)

  • out (UnstructuredMesh) – the output mesh

BasicTools.Bridges.vtkBridge.ApplyVtkPipeline(mesh: UnstructuredMesh, op: Callable) UnstructuredMesh[source]
BasicTools.Bridges.vtkBridge.CheckIntegrity(GUI=False)[source]
BasicTools.Bridges.vtkBridge.CheckIntegrity_ConstantRectilinearMesh(GUI=False)[source]
BasicTools.Bridges.vtkBridge.CheckIntegrity_MeshToVtk(GUI=False)[source]
BasicTools.Bridges.vtkBridge.CheckIntegrity_VtkToMesh(GUI=False)[source]
BasicTools.Bridges.vtkBridge.CheckIntegrity_VtkToMesh2D(GUI=False)[source]
BasicTools.Bridges.vtkBridge.GetInputBasicTools(request, inInfoVec, outInfoVec, FieldsAsTags=False, port=0)[source]
BasicTools.Bridges.vtkBridge.GetInputVtk(request, inInfoVec, outInfoVec, port=0)[source]
BasicTools.Bridges.vtkBridge.GetOutputVtk(request, inInfoVec, outInfoVec, copyAttr=True, outputNumber=0)[source]
BasicTools.Bridges.vtkBridge.MeshToVtk(mesh, vtkobject=None, TagsAsFields=False)[source]
BasicTools.Bridges.vtkBridge.NumpyFieldToVtkField(support: UnstructuredMesh, fieldData: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], fieldName: str)[source]
BasicTools.Bridges.vtkBridge.NumpyFieldToVtkFieldWithDims(fieldData: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], fieldName: str, dimensions=None)[source]
BasicTools.Bridges.vtkBridge.PlotMesh(mesh)[source]
BasicTools.Bridges.vtkBridge.SetOutputBasicTools(request, inInfoVec, outInfoVec, outMesh, TagsAsFields=False)[source]
BasicTools.Bridges.vtkBridge.VtkFieldToNumpyField(support: UnstructuredMesh, vtkField) ndarray[source]
BasicTools.Bridges.vtkBridge.VtkFieldToNumpyFieldWithDims(vtkField, dimensions=None)[source]
BasicTools.Bridges.vtkBridge.VtkToMesh(vtkmesh, meshobject=None, FieldsAsTags=True)[source]
BasicTools.Bridges.vtkBridge.VtkToMeshMultiblock(vtkObject, OP=<function VtkToMesh>)[source]
BasicTools.Bridges.vtkBridge.VtkToMeshOnlyMeta(vtkmesh, FieldsAsTags=False)[source]
BasicTools.Bridges.vtkBridge.checkIntegrity_ApplyVtkPipeline(GUI)[source]