blob Element Reference

Blobby shape comopsed of a set of metaobject elements. More...

Inheritance diagram for blob:

shape

List of all members.

Attributes

real_t threshold
 specifies the particular isocontour boundary which will define the surface of this blobby shape
vector3 resolution
 Grid resolution for marching cubes to generate a mesh from the metaobjects.
vector[metaobjectmetaObjects
 Array of metaobject elements comprising this blobby shape.


Detailed Description

Blobby shape comopsed of a set of metaobject elements.

Note:
Blobby isosurface composed of a set of MetaObjects, all of which combine to form a scalar field whose contour at this blob's threshold value defines the surface. Upon initialization (Blob::init), the implicit surface is polygonized into triangles using a variant of the well-known Marching Cubes algorithm. A MetaObject exerts a positive or negative 'charge' in a scalar field, whose isocontours (level sets) define blobby surfaces with different threshold values corresponding to the contour level. MetaObjects positively or negatively affect their neighboring MetaObjects depending on their 'strength' and 'negative' attributes.

blob corresponds to the underlying Milton class 'Blob.'

Example usage:

"blob" : {
// declare a blobby metaobject composed of three metaballs
"metaObjects" : [
{ "type" : "ball", "position" : [ .6, 0, 0 ], },
{ "type" : "ball", "position" : [ 0, .6, 0 ], },
{ "type" : "ball", "position" : [ 0, 0, .6 ], },
],

// optionally specify hints for resulting mesh's acceleration data structure
"spatialAccel" : "kdTree",
"kdMaxDepth" : 16,

// threshold may range from [0, 0.2)
"threshold" : .18,
},

Attribute Documentation

specifies the particular isocontour boundary which will define the surface of this blobby shape

typereal scalar
optionaltrue
default0.17
restrictionsvalid within [0, 0.2)

Grid resolution for marching cubes to generate a mesh from the metaobjects.

Note:
TODO: make this customizable; currently hard-coded
typevector3
optionaltrue
default[ 128, 128, 128 ]

Array of metaobject elements comprising this blobby shape.

Note:
See also metaobject
typevector[metaobject]
optionalfalse
restrictionsmust be non-empty


Generated on 28 Feb 2009 for MiltonScenefileFormat by doxygen 1.5.6