Anton Gladky
2009-06-25 08:01:45 UTC
Hi, all!
I have that YADE crashes because of 1 string in my script.
CODE:
#_______________________________________________________________________
a = 62
b = 40
h = 33
boxThick = 3
boxCoef = 5
a = 0.001*a
b = 0.001*b
h = 0.001*h
#Side 1
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,boxThick*boxCoef)],dynamic=False,color=[0.98,0.984,0.576]))
#_______________________________________________________________________
The process crashes after last string.
But when I change:
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0)..........................
...
to
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef-0.000001,-b/2*boxCoef,0)
...
it works perfect. Maybe there is the division on zero somewhere?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÃŒÃen
[RUS] С МаОлÑÑÑОЌО пПжелаМОÑЌО
[UKR] РМайкÑаÑОЌО пПбажаММÑЌО
Anton Gladkyy
I have that YADE crashes because of 1 string in my script.
CODE:
#_______________________________________________________________________
a = 62
b = 40
h = 33
boxThick = 3
boxCoef = 5
a = 0.001*a
b = 0.001*b
h = 0.001*h
#Side 1
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,boxThick*boxCoef)],dynamic=False,color=[0.98,0.984,0.576]))
#_______________________________________________________________________
The process crashes after last string.
But when I change:
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef,-b/2*boxCoef,0)..........................
...
to
...
O.bodies.append(utils.facet([(a/2*boxCoef,b/2*boxCoef,0),(a/2*boxCoef-0.000001,-b/2*boxCoef,0)
...
it works perfect. Maybe there is the division on zero somewhere?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÃŒÃen
[RUS] С МаОлÑÑÑОЌО пПжелаМОÑЌО
[UKR] РМайкÑаÑОЌО пПбажаММÑЌО
Anton Gladkyy