@@ -21,18 +21,21 @@ ConvexPartitions = Model(
2121 massProperties= massAndGeoSphere, collision= true )),
2222 free = FreeMotion(obj1= :world, obj2= :sphere, r= Var(init= [0.0 , 2.0 , 0.0 ])),
2323
24-
2524 bunnySolid = Object3D(parent= :world, feature= Solid(shape =
26- FileMesh(filename= filenameBunny, scale= [0.1 , 0.1 , 0.1 ]), solidMaterial= " Steel" , collision = true )),
25+ FileMesh(filename= filenameBunny, scale= [0.1 , 0.1 , 0.1 ]), solidMaterial= " Steel" , collision= true )),
2726
2827 bunnyPartitionSolid = Object3D(parent= :world, translation= [0.5 , - 2.0 , 2.0 ], feature= Solid(shape =
29- FileMesh(filename = filenameBunny, scale= [0.1 , 0.1 , 0.1 ], convexPartition= true ), solidMaterial= " Steel" , collision= true )),
28+ FileMesh(filename= filenameBunny, scale= [0.1 , 0.1 , 0.1 ], convexPartition= true ), solidMaterial= " Steel" , collision= true )),
3029)
3130
3231convexPartitions = @instantiateModel(buildModia3D(ConvexPartitions), unitless= true , log= false , logStateSelection= false , logCode= false )
3332
3433stopTime = 1.3
35- requiredFinalStates = [1.6853549405539088 , - 1.9603839264641005 , 1.5512239899411384 , 4.577225786420592 , - 3.6364005190730575 , - 1.841958211129179 , 16.04685907044025 , 0.10996251002097332 , 8.10149898250639 , 28.66624352831703 , 8.399969490696167 , 37.24515015558254 ]
34+ if Sys. iswindows()
35+ requiredFinalStates = [1.6852436731117506 , - 1.9602009870847892 , 1.5537079430670875 , 4.576280426855566 , - 3.6359538989543787 , - 1.8281828479408744 , 16.048751238499957 , 0.11284016337050634 , 8.101268624505751 , 28.746819815200922 , 8.39876218585158 , 37.19093884427305 ]
36+ else
37+ requiredFinalStates = [1.6853549405539088 , - 1.9603839264641005 , 1.5512239899411384 , 4.577225786420592 , - 3.6364005190730575 , - 1.841958211129179 , 16.04685907044025 , 0.10996251002097332 , 8.10149898250639 , 28.66624352831703 , 8.399969490696167 , 37.24515015558254 ]
38+ end
3639@time simulate!(convexPartitions, stopTime= stopTime, log= false , logStates= false , logEvents= true , requiredFinalStates= requiredFinalStates)
3740
3841end
0 commit comments