Why are there two boxes‘ illustration in the documentation

Asked by Wang Yu

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Wang Yu (wangyu93) said :
#2

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