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)
Executes a builtin modelling operation as for example extruding a polygon selection or selecting all ...
C4DAtom * GetIndex(Int32 idx) const
Definition: c4d_baselist.h:1842
Definition: ge_autoptr.h:37
Definition: c4d_baseobject.h:248
Definition: lib_collider.h:85
Definition: c4d_baseobject.h:1784
PyObject * obj
Definition: complexobject.h:60
Py_UNICODE c
Definition: unicodeobject.h:1200
maxon::Bool Bool
Definition: ge_sys_math.h:51
#define COL_OK
OK.
Definition: lib_collider.h:25
#define MCOMMAND_CURRENTSTATETOOBJECT
Current state to object (returns object): MDATA_CURRENTSTATETOOBJECT.
Definition: ge_prepass.h:1643
#define MCOMMAND_TRIANGULATE
Triangulate.
Definition: ge_prepass.h:1632
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:842
AtomArray * result
Definition: operatingsystem.h:864
BaseObject * op
The input object. Use arr for multiple objects.
Definition: operatingsystem.h:855
BaseDocument * doc
Definition: operatingsystem.h:853