Comments (7)
I'm attaching here an example svg file created with inkscape illustrating how clipping can be done with svg.
from freecad.
Does https://wiki.freecad.org/TechDraw_GeometricHatch function produce the same outcome?
from freecad.
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.
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.
@WandererFan FYI
from freecad.
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.
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.
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)
- TD: Clean-up class GeometryMatcher
- Wrong export in STL (export with errors) HOT 1
- Start:Asking to Which Workbench Selector to Use HOT 3
- Addon Manager Locks up FreeCAD HOT 10
- Navigation cube: mouse click events are not recognized HOT 2
- Sketcher segfaults when using the symmetry tool HOT 10
- FEM: Bug when pre-selecting geometries for some constraints
- [TreeView] Incorrect Label2 view when element is hiden HOT 3
- Sketcher: "Fit All" zoom command in edit mode always includes axis origin HOT 3
- Draft: Exception during shapes editing HOT 2
- Sketcher: "Fit selection" command in edit mode does not fit view to selection HOT 3
- [Feature Request] 3D Constraint-driven sketcher/wireframe workbench HOT 3
- TechDraw: Smart dimension doesn't support thickness annotations HOT 1
- Error on create output for helical cut on fanuc code HOT 3
- Sketcher: ConstraintEqual doesn't accept Line + Arc HOT 2
- Core: "Go to selection" not working HOT 3
- FEM: Results pipeline can't handle cases when output has a single value in the whole model
- Add Favorite Properties
- OndselSolver: Failing to compile with GCC 14
- Hatch not correctly exported to PDF HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad.