コード例 #1
0
    def displayBlocks(self,
                      setToDisplay=None,
                      caption=None,
                      fileName=None,
                      defFScale=0.0):
        '''Display the blocks (points, lines, surfaces and volumes)
           of the set.

           :param setToDisplay: set to display.
           :param caption: title of the graphic.
           :param fileName: name of the file to plot the graphic. Defaults to 
                       None, in that case an screen display is generated
           :param defFScale: factor to apply to current displacement of nodes 
                   so that the display position of each node equals to
                   the initial position plus its displacement multiplied
                   by this factor. (Defaults to 0.0, i.e. display of 
                   initial/undeformed shape)
        '''
        if (setToDisplay == None):
            setToDisplay = self.modelSpace.getTotalSet()
        if (caption == None):
            caption = setToDisplay.name + ' set; blocks'
        defDisplay = vtk_CAD_graphic.RecordDefDisplayCAD()
        defDisplay.cameraParameters = self.getCameraParameters()
        defDisplay.displayBlocks(setToDisplay,
                                 caption=caption,
                                 fileName=fileName)
コード例 #2
0
execfile('./model_data.py')
from postprocess.xcVtk.CAD_model import vtk_CAD_graphic

defDisplay = vtk_CAD_graphic.RecordDefDisplayCAD()

defDisplay.displayBlocks(xcTotalSet, caption=xcTotalSet.name + ' set')
#defDisplay.displayBlocks(setParapet,caption= setParapet.name+' set')
#defDisplay.displayBlocks(setColumns,caption= setColumns.name+' set')
#defDisplay.displayBlocks(setTransverseBeams,caption= setTransverseBeams.name+' set')
#defDisplay.displayBlocks(springLines,caption= springLines.name+' set')