- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Programming with SOFA › vertexMass cannot be read using SoftPython
Tagged: 64_bits, Linux_ubuntu, SOFA_1806
I think there’s no update for SofaPython plugin regarding the changes of mass
to vertexMass
.
If I use the following code :
cube.createObject(‘UniformMass’, name=”mass”, mass=[totalMass, volume, inertiaMatrix[:]])
The following warning occurred :
[WARNING] [UniformMass(unnamed)] input data 'mass' changed for 'vertexMass', please update your scene (see PR#637)
When I using the following code :
cube.createObject(‘UniformMass’, name=”mass”, vertexMass=[totalMass, volume, inertiaMatrix[:]])
Then the following error comes out :
[WARNING] [UniformMass(mass)] Could not read value for data field vertexMass: 1.0 1.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0
Anybody can solve it ? Thanks!
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.