I am thinking of a module which makes it easy to extend the scene with graphics-primitives, interactors, manupulators and so on. Not like pivy which is nearly the same level as coin. This could also be a step towards python3 as pivy isn't supporting python3 yet.
does anyone has allready tried something like this? How much work would it be?
So this:
Code: Select all
from pivy import coin
object = coin.SoSeparator()
ls = coin.SoLineSet()
data = coin.SoCoordinate3()
color = coin.SoMaterial()
color.diffuseColor = COLORS[color]
object.addChild(self.color)
object.addChild(self.data)
object.addChild(self.ls)
Code: Select all
import pycoin
line = pycoin.Line([pts])
line.color = pycoin.color.red .......