I am trying to visualize the stress of internal elements using clipping plane option. However, when I am inside the stress-result task, I can't select the clipping plane option (as shown in the figure is disabled).
I try the following options by typing in python API in order to see stress of internal elements:
Code: Select all
# Prepare the Stress_Result data:
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").DisplayMode = u"Faces"
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").MaxFacesShowInner = 5000000
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").Transparency = 40
FreeCADGui.getDocument("workpiece").getObject("Stress_Result").ShowInner = True
Using pivy options, someone can control the clipping plane too...
Code: Select all
from pivy import coin
clip=coin.SoClipPlane()
clip.plane.setValue(coin.SbPlane(coin.SbVec3f(0,0,1),-7)) # set this to control the clipping plane
Gui.ActiveDocument.ActiveView.getSceneGraph().insertChild(clip,0)
clip.on.setValue(False) # switch off
clip.on.setValue(True) # switch on
I also try an elegant option posted in this forum https://forum.freecadweb.org/viewtopic. ... 8&start=30. However it is limited to solid/parts. It is not possible to apply, in the stress-result object.
Can someone help me with the visualization of internal stresses?
BTW: all numerical results are correctly written in the .dat file.