ElektraInitiative / PermaplanT

https://www.permaplant.net
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Using brushes for shadings. #1151

Open badnames opened 11 months ago

badnames commented 11 months ago

Tasks

Ideally we would like to generate shadings in the shade layer using some sort of brush tool.

Possible approaches:

Use case

Shade Layer

Related Pull request

1135

markus2330 commented 11 months ago

@badnames thx for writing the issue. To know about this issue before we started heat map/shadings backend would have been worth gold :wink:

Rewrite the backend such that it uses free form shapes or pixel image data instead of simple polygons.

@danielsteinkogler Will this maybe be needed also for Drawing Layer? (Of course in case of shadings it is more complicated because of the heat map.)

danielsteinkogler commented 10 months ago

i think for drawing layer its not that relevant. At least for the frontend its not interesting how the data is stored. So i think the backend devs can decide how its most effeicient to store the shapes.

markus2330 commented 10 months ago

We should avoid storing brushes differently in the DB, independent if they are semantically used or not.

markus2330 commented 10 months ago

I currently think the best way is to build up the polygons with "brushing" is in the frontend by:

So if we do go that way, we need:

Let us discuss it today to slowly come to a decision.