← Back to team overview

yade-users team mailing list archive

Re: [Question #672673]: translation engine

 

Question #672673 on Yade changed:
https://answers.launchpad.net/yade/+question/672673

jacopo gave more information on the question:
hi just to give more information: i already tried using directly the stl
file. I am not able to copy and paste it here ( i can read it with yade
but i don't have program to "see" it. Gedit, notepad or word can't open
it). However in this stl file the aircraft has the identical position of
the facets i sent you before. My code in this case is:

########################################################
from yade import pack, plot
from yade import ymport,pack


model = O.bodies.append(ymport.stl(file='model-aereo.stl',color=(0,1,0),wire= True, dynamic= True, fixed=False))
sfera=O.bodies.append(sphere([0,40,20],3))

O.engines=[
   ForceResetter(),
   InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
   InteractionLoop(
      [Ig2_Sphere_Sphere_L3Geom(),Ig2_Facet_Sphere_L3Geom()],
      [Ip2_FrictMat_FrictMat_FrictPhys()],
      [Law2_ScGeom_FrictPhys_CundallStrack()]
   ),
 TranslationEngine(translationAxis=(0,1,0),velocity=1,ids=model,label='trans'),
 NewtonIntegrator(gravity=(0,0,-9.81)),
]
###########################################
it doesn't give me any error but when the simulation starts the aircraft disappear.
As before i can't see the sphere.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.