Drawing with THREE.LineDashedMaterial()

Hi, community!
The survivor from the UMS "Vortex Rikers" (aka Prison Vessel 254) is here.
(Sorry, I couldn’t resist to write it as the topic is related to my nickname somehow :blush:)

A teasing picture first:
U_logo

And then, a link to CodePen:

The idea is not so original.
THREE .LineDashedMaterial() has .dashSize and .gapSize parameters.
So, we can set gap greater than the length of all the line segments of a geometry.
Then we can increase the size of dash, until it becomes equal or greater than the length of line segments in the geometry.

People ask about it time to time on SO. Let this (of course not ultimate) solution be in resources on the forum :slight_smile:

More examples:

5 Likes

Love it!
Very cool!

1 Like

@ben
Thanks :beers: :wink:

Again and again instructive examples - super. :+1:t2:

1 Like

@hofk
Thanks :beers: (and for a better approach too) :wink: