skybber / fchart3

Python scripts to make beautiful deepsky finder charts and maps in various image formats.
GNU General Public License v2.0
12 stars 5 forks source link

Clipping? #12

Open bourgesl opened 5 months ago

bourgesl commented 5 months ago

If needed I implemented my own clipping algorithm (3 variants) in the marlin renderer that supports any closed polygon or stroked/dashed path...

It works as a stream processor and blazing fast.

If needed I could port it to python or C...

bourgesl commented 5 months ago

Here is the filled shape case (polygon): https://github.com/bourgesl/marlin-renderer/blob/5b1cbb57c39082cc444807daec401dd033754af7/src/main/java/sun/java2d/marlin/TransformingPathConsumer2D.java#L513

skybber commented 5 months ago

Thanks!