Skip to content
Prev 332901 / 398503 Next

`level' definition in `computeContour3d' (misc3d package)

On 13-11-09 11:57 AM, j. van den hoff wrote:
I think it does, but your data make the determination of its location 
ambiguous.

The definition is the estimated location where the continuous field 
sampled at v crosses level.

You have a field with a discontinuity (or two).  You have whole volumes 
of space where the field is equal to the level.  The marching cubes 
algorithm is designed to detect crossings, not solid regions.

For example, going back to one dimension, if your data looked like your 
original vector

data1 <- c(0, 0, 1, 1, 1, 1, 1, 0, 0)

then it is ambiguous where it crosses 1:  it could be at 3 and 7, or 
there could be multiple crossings in that range.  I believe the 
analogous situation in misc3d would treat this as a crossing at 3 and 7.

Duncan Murdoch