c4d.VoronoiFracture
							
						
						
							¶
						
					New in version R18.039.
c4d.
							
							
VoronoiFracture
							
							
								¶
							
						
VoronoiFracture.GetSourcesCount()
								
							
						
VoronoiFracture.GetSource()
								
							
						
VoronoiFracture.GetSourceByType()
								
							
						
VoronoiFracture.RemoveSource()
								
							
						
VoronoiFracture.AddPointGenerator()
								
							
						
VoronoiFracture.AddSceneObject()
								
							
						
VoronoiFracture.ClearSources()
								
							
						
VoronoiFracture.GetSourceSettingsContainerForIndex()
								
							
							
								NEW
							
						
VoronoiFracture.GetSourceSettingsContainerForObject()
								
							
							
								NEW
							
						
c4d.BaseObject
										
									
								
VoronoiFracture.
							
							
__init__
							
							
								(
							
							
								)
							
							
								¶
							
						| Return type: | c4d.VoronoiFracture | 
|---|---|
| Returns: | The new Voronoi fracture object. | 
VoronoiFracture.
							
							
GetSourcesCount
							
							
								(
							
							
								)
							
							
								¶
							
						Returns the number of elements in the Sources list, including point generators.
| Return type: | int | 
|---|---|
| Returns: | The number of elements in the Sources list. | 
VoronoiFracture.
							
							
GetSource
							
							
								(
							
							
								index
							
							
								)
							
							
								¶
							
						Retrieves the object referenced at the given index .
Note
If index references a point generator that point generator object is returned.
| Parameters: | index ( int ) – The index of the source element to access. | 
|---|---|
| Return type: | c4d.BaseObject | 
| Returns: | The object at the given index , or None if the method failed. | 
VoronoiFracture.
							
							
GetSourceByType
							
							
								(
							
							
								type
							
							
								[
							
							,
							
								startIndex=-1
							
							
								]
							
							
								)
							
							
								¶
							
						Retrieves the object referenced in the Sources list with the given type.
Note
If multiple objects with the given type exist the first is returned.
| Parameters: | 
											
  | 
									
|---|---|
| Return type: | 
											 
												tuple(
												
													  | 
									
| Returns: | 
											 A tuple with the found source object and its index, or None if the method failed.  | 
									
VoronoiFracture.
							
							
RemoveSource
							
							
								(
							
							
								index
							
							
								)
							
							
								¶
							
						Removes the source element in the list at the given index.
Note
If the index references a point generator it is also deleted from the internal list.
| Parameters: | index ( int ) – The index of the source element to remove. | 
|---|---|
| Return type: | bool | 
| Returns: | True if the element was removed successfully, otherwise False . | 
VoronoiFracture.
							
							
AddPointGenerator
							
							
								(
							
							
								type[, shaderType=-1
							
							
								)
							
							
								¶
							
						Adds a new point generator.
| Parameters: | 
											
  | 
									
|---|---|
| Return type: | 
											 
												tuple(
												
													  | 
									
| Returns: | 
											 A tuple with the added point generator and its index, or None if the method failed.  | 
									
VoronoiFracture.
							
							
AddSceneObject
							
							
								(
							
							
								object
							
							
								)
							
							
								¶
							
						Adds a valid object from the scene to the Sources list.
| Parameters: | object ( c4d.BaseObject ) – The scene object that should be added. | 
|---|---|
| Return type: | tuple(bool, int) | 
| Returns: | A tuple with the scene object addition state and its index, or None if the method failed. | 
VoronoiFracture.
							
							
ClearSources
							
							
								(
							
							
								)
							
							
								¶
							
						Clears the Sources list and deletes all point generators.
VoronoiFracture.
							
							
GetSourceSettingsContainerForIndex
							
							
								(
							
							
								index
							
							
								)
							
							
								¶
							
						New in version R19.
Returns the internal container for the settings of an external source input, like a polygon object as point source.
Note
Allows to change the settings that control for example the distribution of points in the object and the point count.
| Parameters: | index ( int ) – The index of the object in the Sources list. | 
|---|---|
| Return type: | c4d.BaseContainer | 
| Returns: | The container for the source settings if the index fits to an external Source input, otherwise None . | 
VoronoiFracture.
							
							
GetSourceSettingsContainerForObject
							
							
								(
							
							
								object
							
							
								)
							
							
								¶
							
						New in version R19.
Returns the internal container for the settings of an external source input, like a polygon object as point source.
Note
Allows to change the settings that control for example the distribution of points in the object and the point count.
| Parameters: | object ( c4d.BaseObject ) – The external source object in the Sources list. | 
|---|---|
| Return type: | c4d.BaseContainer | 
| Returns: | The container for the source settings if the object is in the Sources list, otherwise None . |