vtk CAD graphic¶
Display block topology entities (k-points,lines,surfaces,bodies,…)
- class postprocess.xcVtk.CAD_model.vtk_CAD_graphic.DisplaySettingsBlockTopo¶
Bases:
postprocess.xcVtk.vtk_graphic_base.DisplaySettings
Define graphic output.
- defineLocalAxes(setToDisplay)¶
Define the local axes of the blocks.
- Parameters
setToDisplay – set of elements to be displayed.
- defineMeshScene(displayCellTypes)¶
Define mesh scene on ouput display.
- Parameters
displayCellTypes – types of cell to be displayed.
- displayBlockEntities(setToDisplay, caption, displayCellTypes, fileName=None)¶
Display geometric entities (points, lines, surfaces and volumes)
- Parameters
setToDisplay – set to be represented
caption – text to display in the graphic.
displayCellTypes – types of cell to be displayed.
fileName – name of the graphic file to create (if None then -> screen window).
- displayBlocks(setToDisplay, displayLocalAxes=True, caption='', fileName=None, displayCellTypes=['lines', 'faces', 'bodies'])¶
Display the element local axes.
- Parameters
setToDisplay – set of elements to be displayed (defaults to total set)
displayLocalAxes – if true, show also local axes of entities.
caption – text to display in the graphic
fileName – file name to store the image. If none -> window on screen.
displayCellTypes – types of cell to be displayed.
- displayLocalAxes(setToDisplay, caption, displayCellTypes, fileName=None)¶
Display the element local axes.
- Parameters
setToDisplay – set of elements to be displayed (defaults to total set)
caption – text to display in the graphic
displayCellTypes – types of cell to be displayed.
fileName – file name to store the image. If none -> window on screen.
vtk CAD mesh¶
Block topology displaying routines using VTK.
- postprocess.xcVtk.CAD_model.cad_mesh.VtkCargaIdsCells(uGrid, setToDraw, entTypeName)¶
- postprocess.xcVtk.CAD_model.cad_mesh.VtkCargaIdsKPts(uGrid, setToDraw)¶
- postprocess.xcVtk.CAD_model.cad_mesh.VtkDibujaIdsCells(uGrid, setToDraw, entTypeName, renderer)¶
Create cell labels.
- postprocess.xcVtk.CAD_model.cad_mesh.VtkDibujaIdsKPts(uGrid, setToDraw, renderer)¶
Draw the point labels.
- postprocess.xcVtk.CAD_model.cad_mesh.vtk_define_cells_actor(gridRecord, renderer, reprType, color=[0.09706014181677136, 0.16131221412663266, 0.8528529946084227])¶
Actor for lines and surfaces.
- Parameters
gridRecord –
rendered – VTK renderer.
reprType – representation type (points, wireframe or surface).
- postprocess.xcVtk.CAD_model.cad_mesh.vtk_define_kpoint_actor(recordGrid, renderer, radius)¶
Returns a vtkActor to represent key-points in a rendering scene. It defines the scale, orientation, rendering properties, textures, …
- Variables
recordGrid – unstructured grid (generic data set) to which incorporate the actor KPoint
renderer – name of the renderer (lights, views, …) to be used in the display
radius – radius of the spheres to be employed in the KPoints representation
- postprocess.xcVtk.CAD_model.cad_mesh.vtk_load_mesh_data(gridRecord)¶
Creates an VTK unstructured grid from the block topology entities.
- Parameters
gridRecord – instance of the RecordDefGrid class.
vtk array data¶
- postprocess.xcVtk.CAD_model.create_array_set_data.VtkCreaStrArraySetData(setToDraw, entTypeName, attr)¶
Creates an array of strings with information associated to the points and cells.
- Parameters
setToDraw – set of entities to be displayed
entTypeName – type of entities to be displayed (“pnts”, “lines”, “nodes”, “elementos”)
attr – attribute to be stored in the array