jit.gl.path pathstyle tube "dimensions"

    Feb 08 2019 | 5:35 pm
    Hi there! Dear Jitters,
    Sometimes we take so many turns to the same problem that we end up confused. A gridshape has the input of dim to control its two dimensions ("resolution"). In the specific case of the tube applied in jit.gl.path (jit.gl.path @pathstyle tube) we have the segments to control one of the dimensions (say "longitudinal resolution"). But how do we control the "section" resolution? I saw that it has 20 divisions by default.
    Please note that I am aware that a gridshape and a tube style applied to gl.path are not the same thing. As far as I see the tube is a mesh (a gridshape can be used "natively" or to "control" a mesh by its matrix output). Sorry for the question... maybe the answer is obvious, but, I confess, I'm not seeing clearly how to define this.
    Thanks for your attention. Kind regards, Horácio

    • Feb 12 2019 | 2:52 pm
      Hi, Horácio! I don't think you can change the circular resolution of "@pathstyle tube" mode. At least there are no documented attributes or messages to do it. The segment attribute controls the incoming matrix subdivision, useful only if you use the spline interpmode. What you could do is use the "@pathstyle contour" mode and build a list with the associated tube's cross section intended shape. Here's an example with an automated way for building the circle geometry with dynamic resolution.
    • Feb 12 2019 | 6:09 pm
      Hi Pedro! Thank you so much for the reply. In fact, I have been playing for some time with jit.gl.path with the contour (the help file has a good explanation on that — it is very flexible on its own possibilities) and I have been having some nice results. I asked about the tube because it is a kind of "painless" style and maybe it could facilitate the procedure of the circular resolution redefinition with a method other than going through the reset of n coordinates of a contour each time we want to redefine its contour (circular, in this particular case).
      But, wow, what you did with the jit.expr, jit.spill of the planes, and the z.lace is really, really very smart! I feel so rokie on Max (i am, but sometimes I forget :)
      Again, thank you so much for the lesson! Best, Horácio