Why are there two boxes‘ illustration in the documentation

Asked by Wang Yu on 2020-06-19

Hello everyone,
I‘ ve found there are two illustrations of box(In Yade wrapper class reference below the Shape class and in Yade Utils module respectively )
What's the difference between the two boxes? I only found one in the source file utils.py in Folder 'trunk/py'.

Maybe it's just my lack of understanding of the structure of YADE.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
2020-06-22
Last query:
2020-06-22
Last reply:
2020-06-19
Best Jérôme Duriez (jduriez) said : #1

Hello,

What do you mean exactly ? The existence of [1] and [2] ?

[1] is about the "Box" child class of "Shape". It may fit into in the shape attribute of a YADE body: if you want a box-shaped body.. It has its own C++ source files in pkg/common

[2] is about a handy function to create such a box-shaped body, with a shape of "Box" type but also all other attributes necessary to define a body

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Box
[2] https://yade-dem.org/doc/yade.utils.html#yade.utils.box

Wang Yu (wangyu93) said : #2

Thanks Jérôme Duriez, that solved my question.