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();
if (
c.BeginInput(poly->GetPolygonCount()) !=
COL_OK)
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;
}
Py_ssize_t i
Definition: abstract.h:645
Bool SendModelingCommand(Int32 command, ModelingCommandData &data)
C4DAtom * GetIndex(Int32 idx) const
Definition: c4d_baselist.h:1697
Definition: ge_autoptr.h:37
Definition: c4d_baseobject.h:225
Definition: lib_collider.h:85
Definition: c4d_baseobject.h:1631
PyObject * obj
Definition: complexobject.h:60
Py_UNICODE c
Definition: unicodeobject.h:1200
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:1620
#define MCOMMAND_TRIANGULATE
Triangulate.
Definition: ge_prepass.h:1609
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