public class SoRandomSphereGeneration3d extends SoImageVizEngine
SoRandomSphereGeneration3d engine allow to create synthetic spheres in a binary image
The SoRandomSphereGeneration3d engine creates a binary image containing a random distribution of spheres. User can specify size, distance, type of distribution and the sphere number.
The image below is an example of the result with the default parameters:
See also:
File format/default:
RandomSphereGeneration3d {
| imageSize | 100 100 100 |
| sphereNumber | 5 |
| distribution | UNIFORM |
| radiusRange | 10 20 |
| distance | 40 |
Library references: buildsphere
| Modifier and Type | Class and Description |
|---|---|
static class |
SoRandomSphereGeneration3d.Distributions |
SoImageVizEngine.ComputeModes, SoImageVizEngine.EventArg, SoImageVizEngine.Neighborhood3dsInventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
SoSFInt32 |
distance
The minimum length between two centers.
|
SoSFEnum<SoRandomSphereGeneration3d.Distributions> |
distribution
The distribution type for length of radius.
|
static int |
GAUSSIAN
Deprecated.
Use
SoRandomSphereGeneration3d.Distributions.GAUSSIAN instead. |
SoSFVec3i32 |
imageSize
The size of the new image.
|
SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> |
outBinaryImage
The output 3D binary image.
|
SoSFVec2i32 |
radiusRange
The min and max size of radius (for Uniform distribution) or mean and standard deviation (for gaussian distribution).
|
SoSFInt32 |
sphereNumber
The number of spheres.
|
static int |
UNIFORM
Deprecated.
Use
SoRandomSphereGeneration3d.Distributions.UNIFORM instead. |
CONNECTIVITY_18, CONNECTIVITY_26, CONNECTIVITY_6, MODE_2D, MODE_3D, MODE_AUTO, onBegin, onEnd, onProgressVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoRandomSphereGeneration3d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluatecopy, getByName, getOutput, getOutputNamecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touchgetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int UNIFORM
SoRandomSphereGeneration3d.Distributions.UNIFORM instead.@Deprecated public static final int GAUSSIAN
SoRandomSphereGeneration3d.Distributions.GAUSSIAN instead.public final SoSFVec3i32 imageSize
SbVec3i32(100,100,100).public final SoSFInt32 sphereNumber
public final SoSFEnum<SoRandomSphereGeneration3d.Distributions> distribution
public final SoSFVec2i32 radiusRange
SbVec2i32(10,20).public final SoSFInt32 distance
public final SoImageVizEngineOutput<SoSFImageDataAdapter,SoImageDataAdapter> outBinaryImage
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com