In [75]: isinstance(O.bodies[1].shape,Facet)
Out[75]: True
In [76]: isinstance(O.bodies[1].shape,Sphere)
Out[76]: False
더 쉬운방법은
In [10]: O.bodies[10].dict()
Out[10]:
{'id': 10,
'groupMask': 1,
'flags': 1,
'subdomain': 4,
'material': <FrictMat instance at 0x5627f60079b0>,
'state': <State instance at 0x5627f643f640>,
'shape': <Sphere instance at 0x5627f643f800>,
'bound': <Aabb instance at 0x5627f643f870>,
'clumpId': -1,
'chain': -1,
'iterBorn': 0,
'timeBorn': 0.0}
'YADE' 카테고리의 다른 글
YADE의 Material (0) | 2023.01.25 |
---|---|
Interaction 확인방법 (0) | 2023.01.11 |
Body의 상태 확인방법 (0) | 2023.01.07 |
O.engines 내용 확인방법 (1) | 2023.01.06 |
YADE의 좌표표시 (0) | 2022.12.22 |