yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02350
Re: [Branch ~yade-dev/yade/trunk] Rev 1815: Fix bug with import facets from stl
-
To:
Yade Development Group <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
"Sergei D." <sj2001@xxxxxxxxx>
-
Date:
Thu, 26 Nov 2009 23:41:29 +0300
-
In-reply-to:
<1259263979.3951.1.camel@flux>
-
User-agent:
Thunderbird 2.0.0.23 (X11/20090817)
> 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