I now encounter a requirement to draw a curved plane on the ground according to the specified path.
And then draw a plane based on this path.
I now encounter a requirement to draw a curved plane on the ground according to the specified path.
Good. What have you tried so far? Could you share your code?
PlaneGeometry
with modified vertices;ParametricGeometry
for a surface following the curve;TubeGeometry
along the path;ExtrudeGeometry
;NURBSSurface
defined by the path;¹A curve like the one in the drawing does not define uniquely a plane, unless you have some additional data or assumptions about the shape.
Here is a demo. Most likely you should modify it a bit to suite your needs. The demo shows three moving points and a plane that curves itself along the curve, defined by the points. I hope this will help you get started.
It looks great, I’ll try it! Thank you.
The solution is very good.
I tried to make something funny with it
It’s a nice calligraphic effect. Maybe this is the proof-of-concept for eventual future THREE.CalligraphicTextGeometry
?
I have found a library that can directly solve this problem, which is very convenient to use. Thank you very much for the help of the community
three.path