Giter Site home page Giter Site logo

Comments (7)

dov avatar dov commented on May 31, 2024

I'm attaching here an example svg file created with inkscape illustrating how clipping can be done with svg.

svg-clip-example.zip

from freecad.

maxwxyz avatar maxwxyz commented on May 31, 2024

Does https://wiki.freecad.org/TechDraw_GeometricHatch function produce the same outcome?

from freecad.

dov avatar dov commented on May 31, 2024

Does https://wiki.freecad.org/TechDraw_GeometricHatch function produce the same outcome?

No, I just tested it. It does not! It's svg output renders ok.

geometric-hatching-rendering

Note however, that the neither svg, through Image File or GeometricHatch, makes use of the svg clipPath feature.

(Alltogether the svg output is extremely redundant, with e.g. setting the font-family element for every path element drawn)

from freecad.

maxwxyz avatar maxwxyz commented on May 31, 2024

@WandererFan FYI

from freecad.

WandererFan avatar WandererFan commented on May 31, 2024

QtSvg only supports Svg-Tiny. According to Adobe Illustrator Help -- Saving artwork: Save in SVG format, SVG Tiny does not support gradients, transparency, clipping, masks, symbols, patterns, underline text, strike through text, vertical text, or SVG filter effects.

This works in v0.20.2 but not in v0.21.2 or v0.22dev, so it is an old regression.

from freecad.

WandererFan avatar WandererFan commented on May 31, 2024

PR #13400 reinstates the substitution of pixmaps for svg hatch tiles from v0.20. This will have the same impact on graphics quality as it did in v0.20.

Svg hatch rotation and offset will not work on export. The pixmaps will be displayed as if rotation and offset are null. Rotated pixmaps look even worse than plain pixmaps.

from freecad.

dov avatar dov commented on May 31, 2024

Yikes. Pixmaps for svg is ugly. :-(

How hard would it be to parse (a subset of) svg in the SVG tiles and then use libclipper for the clipping? E.g. using the first path statement only and then transform and clip by libclipper?

from freecad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.