0

In 2 dimensions, I can do like this to draw my image:

Image[Graphics[{Circle[]}]]

But in 3 dimensions, this method will give an error information:

So I try another array method:

Image[Thinning[Unitize[EntropyFilter[ArrayPad[DiskMatrix[{10, 10}], 1], 1]]]]

This is good method in 2 dimensions. But the function Thinning cannot be used in 3 dimensions. So I don't know how to draw a 3D sphere still.


Update:

It seem the

EdgeDetect[Image3D[ArrayPad[DiskMatrix[{40, 40, 40}], 1]]]

is close to what I want.But this method is costing memory very much and the surface'sthickness seem to be not very uniform.

yode
  • 26,686
  • 4
  • 62
  • 167

1 Answers1

7

If we are in 11.2,the RegionImage can help us to implement it

RegionImage[Sphere[]]

It is what I want exactly.

yode
  • 26,686
  • 4
  • 62
  • 167