Skip to content

Unable to see two .stl at the same time #5069

Discussion options

You must be logged in to vote

Hi,

I just checked on my side. The problem is not coming from the MeshSTLLoader but how you structured your scene file.

The first mechanical Object is missing position=rootNode.loader_actuator.position.getLinkPath(),
Then I also suggest that the mapped node should be child of the first node with the mechanicalObject to avoid any confusion in the identityMapping: visual_actuator = actuator.addChild('VisualModelActuator')

Here is a working version with other mesh available in the SOFA source code base.

#-*- coding: utf-8 -*-
import Sofa
#import contoller.py

def createScene(rootNode):
    
    # Required plugins
    rootNode.addObject('RequiredPlugin', name='Sofa.Component.IO.Mesh') # Neede…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rickysaettone
Comment options

Answer selected by rickysaettone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants