Skip to content
Prev 332908 / 398503 Next

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

On 13-11-09 12:53 PM, j. van den hoff wrote:
I don't think it does.  I think it picks 4 and 6.  In your 3d example, 
the smaller cube runs from 9 to 13 in each coordinate (though it misses 
the corners).  You can see this if you plot it using the "rgl" engine, 
then call rgl::decorate3d() to add axes.
That makes just as much sense, but not more.  Anywhere from 3 to 4 is a 
sensible left end, anywhere from 6 to 7 is fine for the right end.
No, it doesn't.  As you've seen, it handles plateaus inconsistently 
depending on whether they are the max of the field or not.  For the case 
where it is an interior plateau, you get your contour at height 
level+epsilon in an approximation to the field.  For the max of the 
field, you get level.

Try comparing the contour you get at level 1 with v and at level -1 with 
-v.  They are not the same.
You can suggest this to the maintainer of the package (I am not author 
or maintainer of it).
You may need to write your own function for this.

Duncan Murdoch