I have tried using coin3d and I found coin.SoImage() method. But with this I obtain the image aligned always facing the camera and I would to obtain the image aligned to the scene axis. I tried using coin.SoTransform() but had no effect.
Any way to insert an image through the file path and be able to move it to the position I want with coin.SoTransform ()?
A little example that I had tried is:
Code: Select all
from pivy import coin
sg = Gui.ActiveDocument.ActiveView.getSceneGraph()
svg = coin.SoImage()
svg.filename = 'routeFilename.svg'
imagePos = coin.SoTransform()
imagePos.translation.setValue([10,0,0])
imagePos.rotation = coin.SbRotation(0,0,0,0)
image = coin.SoSeparator()
image.addChild(svg)
image.addChild(imagePos)
sg.addChild(image)
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: tag: 0.16.6706
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17