1
$\begingroup$

I am trying to plot spherical particles in a cube of fixed dimension in matlab. I face a problem here where the center of the sphere is too close to the edge of the cube in this case the rest of the sphere needs to be plotted in the opposite side. I hope I am clear. How can I do this

$\endgroup$
  • $\begingroup$ You mean something like this? $\endgroup$ – fibonatic May 18 '15 at 14:47
3
$\begingroup$

A quick and dirty solution is to plot a phantom sphere outside the cube on the opposite side, and then apply clipping to the cube boundary.

| cite | improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.