something do not understand about code in polyhedra_ig2.cpp
hello
below is the code i am reading:
bool Ig2_Polyhedra_
const Se3r& se31=state1.se3;
const Se3r& se32=state2.se3;
shared_ptr<ScGeom> geom;
bool isNew = !interaction->geom;
if (isNew) {
Ig2_Polyhedra
ppGeom.
bool pp = ppGeom.
if (!pp) {
return false;
}
shared_
geom = shared_
geom->radius1 = (pGeom-
geom->radius2 = (pGeom-
interaction-
} else {
geom = YADE_PTR_
}
const Real& radius1 = geom->radius1;
const Real& radius2 = geom->radius2;
Vector3r normal=
Real norm=normal.norm(); normal/=norm; // normal is unit vector now
Real penetrationDept
geom->
geom->
scene = Omega::
geom->
return true;
}
question1: what does the parameter shift2 do?
question2:what does se31.position refer to? i know that the position of sphere means the centre of it, but as to polyhedra, which point can define the position of it? Is the positon means the centroid of polyhedra or something else?
lookforward for your answer.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask lip for more information if necessary.