Share your methods or algorithms for painting areal objects, I will be very grateful. I have points List <Vector2> or List <Vector3>, there are textures with different settings:

enter image description here

And I need to fill the area.

For example, I have 4 coordinates, I painted a square by clicking the button: enter image description here

  • \$\begingroup\$ You could always use bubble filling or rasterization \$\endgroup\$ – Natalo77 Jul 23 '20 at 13:51
  • \$\begingroup\$ @Natalo77 can I have a link or examples?I will be grateful \$\endgroup\$ – Ivan Triumphov Jul 23 '20 at 13:56
  • \$\begingroup\$ Are you looking to create a polygon from a set of points and apply this material to it? If so, this past Q&A may have some useful leads for you. If you need something different, can you edit your question to show some examples of your desired effect? \$\endgroup\$ – DMGregory Jul 23 '20 at 14:00
  • \$\begingroup\$ @DMGregory My widget is building a terrain. I know the points of the polygon. I need to generate points inside the polygon. To receive List<Vector2> .To later, relative to this list, paint over the polygon \$\endgroup\$ – Ivan Triumphov Jul 23 '20 at 14:07
  • \$\begingroup\$ It looks like you should edit your question to walk us through this feature step-by-step, with example diagrams. \$\endgroup\$ – DMGregory Jul 23 '20 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.