← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 1815: Fix bug with import facets from stl

 

> Are you sure this is OK? Can it mean that wrong State will be used?
>>         ## resets state (!!)
>> -       b.state=b.mat.newAssocState()
>> +       if resetState: b.state=b.mat.newAssocState()
>>         mass=volume*b.mat['density']

So, is the state defined by the material? Logically...
Then, this is workaround, because when geometry is imported from a stl,
the STLImporter first creates facets and specifies the state, after
which the user  specifies the remaining variables. Thus, the material is
specifies by the second... and resets the imported state.

S.D.




Follow ups

References