Skip to content

Correct usage of 'renderLinesAsTubes()' #543

Answered by marcomusy
andama asked this question in Q&A
Discussion options

You must be logged in to vote

Specifying the lineWidth works and they are (at least now) rendered as tubes. They don't behave like physical objects however which is what I need. I essentially need the lines to behave like cylinders and not scale the width when zooming like below. Is it working as intended?

Yes, these are not "real" lines (in computer graphics are called "impostors" if i remember..), they simulate a tube but there is nothing physical there...

Do I need to use cylinders if I want them to not behave like this?

Yes, I'm afraid... you can still create your tubes and associate a constant scalar id to all points/cells of these cylinders, so once you merge them you'll be able to use cmap()

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@andama
Comment options

Comment options

You must be logged in to vote
2 replies
@andama
Comment options

@marcomusy
Comment options

Answer selected by andama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants