A Voronoi pattern segments the space into separate cells defined by a list of points. The maxon::Voronoi3DInterface allows to segment 3D space into such Voronoi cells.
  
  
 
  
 
  {
  }
 
 
  
 
  
 
  
 
  
  const 
maxon::
Bool voronoiNotReady = !voronoi.IsReady();
 
 
  
 
  
 
  
  for (auto& cell : curCellData)
 
  {
    
                     {
                       const auto& vertices = cellArg.GetVertices();
                       {
                           return false;
                       }
                       return true;
                     };
 
    
    if (CheckCell(cell))
    {
 
      
      PolygonObject* const polygonObject = PolygonObject::Alloc(vertexCount, 0);
      if (polygonObject != nullptr)
      {
        
        AutoAlloc<Modeling> modeling;
        if (modeling == nullptr)
 
        modeling->InitObject(polygonObject);
 
        
        {
          modeling->SetPoint(polygonObject, 
i, vertices[
i]);
 
        }
 
        
 
 
        
        {
          
          const maxon::Int startEdgeIndex = currentEdgeIndex;
 
 
          
 
          
          do
          {
            
 
            
 
          } while (startEdgeIndex != currentEdgeIndex);
 
          
          if (ngonIndexCount > 0)
          {
          }
        }
 
        
 
        
                              {
                                color.
x = (randomGen.Get01() * 0.5) + 0.5;
 
                                color.
y = (randomGen.Get01() * 0.5) + 0.5;
 
                                color.
z = (randomGen.Get01() * 0.5) + 0.5;
 
                                return color;
                              };
 
        
        
        doc->InsertObject(polygonObject, 
nullptr, 
nullptr);
 
      }
    }
  }
Py_ssize_t i
Definition: abstract.h:645
 
const char ** buffer
Definition: abstract.h:327
 
NONE
Definition: asset_browser.h:1
 
void AddPoint(const Vector64 &p)
Definition: c4d_tools.h:563
 
Definition: basearray.h:415
 
MAXON_ATTRIBUTE_FORCE_INLINE ResultRef< T > Append(ARG &&x)
Appends a new element at the end of the array and constructs it using the forwarded value.
Definition: basearray.h:627
 
MAXON_ATTRIBUTE_FORCE_INLINE const T * GetFirst() const
Returns the first element of the array. For the BaseArray this is a pointer to a continuous block of ...
Definition: basearray.h:1174
 
MAXON_ATTRIBUTE_FORCE_INLINE Int GetCount() const
Gets the number of array elements.
Definition: basearray.h:585
 
CellData struct is a datacontainer that represents a single Voronoi Cell.
Definition: celldata.h:43
 
T maxValue
The inclusive maximum boundary of this range. If the minimum boundary is not less than or equal to th...
Definition: range.h:257
 
Bool Contains(const T &value) const
Definition: range.h:234
 
T minValue
The inclusive minimum boundary of this range.
Definition: range.h:256
 
void Py_ssize_t * pos
Definition: dictobject.h:50
 
for(i=0;i< length;i++)
Definition: unicodeobject.h:61
 
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:187
 
bool Bool
boolean type, possible values are only false/true, 8 bit
Definition: apibase.h:180
 
int32_t Int32
32 bit signed integer datatype.
Definition: apibase.h:175
 
static auto Create(ARGS &&... args)
Definition: apibase.h:2823
 
#define MODELING_COMMIT_TRINGONS
For example, an easy way to triangulate would be to just fetch the polygon selection into the kernel ...
Definition: lib_modeling.h:357
 
#define MODELING_SETNGON_FLAG_TRIANGULATE
Force the N-gon to be created as its polygons (similar to the MODELING_COMMIT_TRINGONS but for a sing...
Definition: lib_modeling.h:382
 
#define MAXON_UNLIKELY(...)
Definition: compilerdetection.h:427
 
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:69
 
#define ConstDescID(...)
Definition: lib_description.h:592
 
maxon::Float32 Float32
Definition: ge_sys_math.h:59
 
maxon::Bool Bool
Definition: ge_sys_math.h:46
 
LMinMax MinMax
Definition: c4d_tools.h:827
 
maxon::Int32 Int32
Definition: ge_sys_math.h:51
 
The maxon namespace contains all declarations of the Maxon API.
Definition: autoweight.h:21
 
@ ID_BASEOBJECT_USECOLOR
Definition: obase.h:19
 
@ ID_BASEOBJECT_USECOLOR_ALWAYS
Definition: obase.h:22
 
@ ID_BASEOBJECT_COLOR
Definition: obase.h:24
 
const char * doc
Definition: pyerrors.h:226
 
#define iferr_return
Definition: resultbase.h:1531
 
Definition: celldata.h:15
 
Int _nextEdgeOfFace
Definition: celldata.h:32
 
Int _start
Definition: celldata.h:30