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.Neighborhood3ds
Inventor.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.
|
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.
|
onBegin, onEnd, onProgress
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoRandomSphereGeneration3d()
Constructor.
|
abortEvaluate, isEvaluating, startEvaluate, waitEvaluate
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getNativeResourceHandle
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 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com