vray.GeomUtils¶
- class vray.GeomUtils¶
Bases:
object
A group of utility methods related to variuos geometry source plugins.
Methods
__init__
()Reads the data contained in the property GeomGaussians.file of the given plugin or in the given file.
Returns the generated scatter transforms and source topology data, corresponding to the plugin parameter config.
- static readGaussianData()¶
Reads the data contained in the property GeomGaussians.file of the given plugin or in the given file.
- Arguments:
gaussian - A
GeomGaussians
plugin instance or a Gaussian file name (.ply)
- Returns a tuple (bbox, positions, colors) or None on failure:
bbox (Tuple) - The preview bounding box of the model, calculated using the Gaussian primitive positions only
positions (VectorList) - Full array of positions of the Gaussian primitives
colors (ColorList) - Full array of average colors of the Gaussian primitives
- static readScatterData()¶
Returns the generated scatter transforms and source topology data, corresponding to the plugin parameter config.
- Arguments:
scatterPlugin - A
GeomScatter
plugin instance (the scatter data generation is triggered depending on the plugin parameter config)
- Returns a tuple (transforms, topo) or None on failure:
transforms, TransformList - Full output transforms data
topo, IntList - Full output source topology data. The indices are corresponding to the sources list in GeomScatter::models