A VoronoiFracture object represents a Voronoi Fracture MoGraph generator. The class provides safe access to the point sources referenced, owned and used by the generator. It is defined in the lib_voronoifracture.h
header file.
A VoronoiFracture object can be accessed like any other object.
VoronoiFracture objects are created with the usual tools:
The IDs of the standard parameters of a VoronoiFracture object are defined in the omograph_fracturevoronoi.h
header file.
Both scene objects and dedicated point generator objects can be used to define the position of Voronoi points inside the mesh volume. The following functions allow to add, remove and edit these point sources. The type ID of point generator objects is Ovoronoipointgenerator.
The VoronoiFracture class provides functions to access the object and generator sources referenced in the "Sources" parameter.
The VoronoiFracture class also provides functions to safely remove objects and generators from the "Sources" parameter.
Using the VoronoiFracture functions it is safe to add new sources and generators to the "Sources" parameter.
Point generators are represented by dedicated BaseObject elements that are owned by the VoronoiFracture object. To configure such a point generator one can simply edit the parameters of the corresponding BaseObject. The parameter IDs of these parameters are defined in opointcreator_panel.h
.
The VoronoiFracture object can also use external objects as sources of points:
The IDs for these settings are defined in tfracturevoronoi.h
.