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()

Define mesh scene on ouput display.

displayBlockEntities(setToDisplay, caption, fileName=None)

Display geometric entities (points, lines, surfaces and volumes)

Parameters:
  • setToDisplay – set to be represented
  • caption – text to display in the graphic.
  • fileName – name of the graphic file to create (if None then -> screen window).
displayBlocks(setToDisplay, displayLocalAxes=True, caption='', fileName=None)

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.
displayLocalAxes(setToDisplay, caption, 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
  • fileName – file name to store the image. If none -> window on screen.
grafico_cad(setToDisplay, caption='')

Establish the set of entities to be displayed and add a caption

Parameters:
  • setToDisplay – set to be represented
  • caption – text to display in the graphic.

vtk CAD mesh

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.VtkDefineActorCells(recordGrid, renderer, tipoRepr)

Actor for the surfaces.

postprocess.xcVtk.CAD_model.cad_mesh.VtkDefineActorKPoint(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.VtkDibujaIdsCells(uGrid, setToDraw, entTypeName, renderer)
postprocess.xcVtk.CAD_model.cad_mesh.VtkDibujaIdsKPts(uGrid, setToDraw, renderer)

Draw the point labels.

postprocess.xcVtk.CAD_model.cad_mesh.vtk_load_mesh_data(recordGrid)

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