File: randomOrientation.py

package info (click to toggle)
yade 2026.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,448 kB
  • sloc: cpp: 97,645; python: 52,173; sh: 677; makefile: 162
file content (6 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
# -*- encoding=utf-8 -*-
# viusally testing utils.randomOrientation function
n = 100
O.bodies.append([box((0, 0, 0), (10, 1, .1), orientation=randomOrientation()) for _ in range(n)])
O.step()
yade.qt.View()