How does yade import models externally
Hello all:
I tried importing the Rhino-generated gts model into yade, but it ran incorrectly. Then use Rhino to export stl file, after conversion into gts file can be run
from yade import pack
import gts, os.path, locale
surf=gts.
if surf.is_closed():
pred=pack.
aabb=pred.aabb()
dim0=aabb[
O.bodies.
surf.translate
O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
PyRunner(
PyRunner(
]
O.dt=.7*
O.saveTmp()
O.timingEnabled
O.trackEnergy=True
from yade import plot
plot.plots=
def addPlotData(): plot.addData(
plot.plot(
from yade import timing
from yade import qt
qt.View()
Traceback (most recent call last):
File "/usr/bin/yade", line 336, in runScript
execfile(
File "/usr/lib/
exec_(code, myglobals, mylocals)
File "HT.py", line 8, in <module>
surf=
RuntimeError: expecting a number (z coordinate)
Thank you in advance!
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: