I hope the code will show up if I put it in the reply.
My code looks like this:
visualNode = body.createChild('visualNode')
bodyObjLoader = visualNode.createObject('MeshObjLoader', name='objLoader',
filename='body.obj')
visualNode.createObject('OglModel', src='@objLoader', name='VisualModel')
pointObjLoader = visualNode.createObject('MeshObjLoader', name='pointObjLoader',
filename='sphere.obj')
visualNode.createObject('OglModel', src='@pointObjLoader',
translation='-81.463 -144.681 -790.974',
name='pointVisualModel')
visualNode.createObject('MergeVisualModels', name='mergedVisualModel',
nb='2', input1='@VisualModel',
input2='@pointVisualModel')
visualNode.createObject('BarycentricMapping', name='visualMapping',
input='@../dofs', output='@VisualModel')
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.