Collision cache : stores a set of triangles, each with an ID, for use with the other collision classes.
{
return false;
return false;
if (!poly)
return false;
Vector* points = poly->GetPoint();
return false;
for (int i = 0; i < poly->GetPolygonCount(); ++i)
{
if (c.
AddTriangle(points[tris[i].a], points[tris[i].b], points[tris[i].c], i) !=
COL_OK)
return false;
}
return false;
return true;
}
Bool SendModelingCommand(Int32 command, ModelingCommandData &data)
C4DAtom * GetIndex(Int32 idx) const
Definition: c4d_baselist.h:1677
Definition: ge_autoptr.h:37
Definition: c4d_baseobject.h:225
Definition: lib_collider.h:85
Int32 BeginInput(Int32 cnt_tris)
Int32 AddTriangle(const Vector &p1, const Vector &p2, const Vector &p3, Int32 id)
BaseDocument * GetDocument()
Definition: c4d_baselist.h:1958
Definition: c4d_baseobject.h:1619
maxon::Bool Bool
Definition: ge_sys_math.h:55
#define COL_OK
OK.
Definition: lib_collider.h:25
#define MCOMMAND_CURRENTSTATETOOBJECT
Current state to object (returns object): MDATA_CURRENTSTATETOOBJECT.
Definition: ge_prepass.h:1450
#define MCOMMAND_TRIANGULATE
Triangulate.
Definition: ge_prepass.h:1439
Represents a polygon that can be either a triangle or a quadrangle.
Definition: c4d_baseobject.h:44
A helper object for SendModelingCommand().
Definition: operatingsystem.h:815
AtomArray * result
Definition: operatingsystem.h:837
BaseObject * op
The input object. Use arr for multiple objects.
Definition: operatingsystem.h:828
BaseDocument * doc
Definition: operatingsystem.h:826