Group Abstract Group Abstract

Message Boards Message Boards

3
|
8.8K Views
|
8 Replies
|
17 Total Likes
View groups...
Share
Share this post:

Memory usage/Leak Graphics 3D and tubes

Attachments:
POSTED BY: Martijn Froeling
8 Replies

Hi Ahmed and Vitaly,

I made a post of the context of this problem here.

POSTED BY: Martijn Froeling

Dear @Martijn, I agree with Ahmed -- it would be lovely to see your work published on Community -- looks very impressive.

POSTED BY: Vitaliy Kaurov

Very nice work Martijn. I am interested (and I am sure many other members) to see the final work and code. Would be nice to share it with us once finished.

POSTED BY: Ahmed Elbanna

Yes!! that solved all the issues I had. And somehow it also fixed the issue with the wrong colors with grouped primitives.

So in summary, I now us the following:

Graphics3D[{CapForm["Square"] ,JoinForm["Miter"] ,Tube[...], Method -> {"TubePoints" -> {6, 2}}]

With the grouped primitives it allows for very smooth images and image manipulation even up to 5000 tracts and tubes simultaneously.

Here are some nice images as a thank you.

enter image description here enter image description here enter image description here

POSTED BY: Martijn Froeling

Thanks, I will give it a try!

POSTED BY: Martijn Froeling
Posted 4 years ago

Other than the CapForm and JoinForm setting which makes memory consumption difference, the "TubePoints" setting {5, 1} is an invalid specification which causes data cache invalidation all the time. Use {5, 2} instead will improve the rotation performance greatly.

POSTED BY: Yuzhu Lu
POSTED BY: Martijn Froeling
POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard