Comments (4)
it's rendered correctly in the lastest development version.
from librecad.
@dxli Yes, but not in the Autodesk software. My point is that the HATCH boundary geometry may be invalid, at least according to Autodesk, which, I believe, owns the DXF format.
from librecad.
dxf format specifies:
- number of loops;
- edges of a loop;
- edge type (lines here);
- edge line positions.
Beyond that, we don't simulate Autodesk behaviors. In this particularly case, valid loops can be created from edges, so hatch is created this way.
from librecad.
The DXF reference for HATCH SOLID is not very specific about the composition of boundary path data. There is much room for interpretation.
Basically the same applies as in OSGeo/gdal#9240, namely that the created geometry is invalid.
So what LibreCAD can do is to prohibit the use of non intersecting/including multi loop boundaries for hatch. But somebody might see this as feature and will be disappointed when we change it.
As we know the code how the hatch is created, we also have the working code to render this as expected. But we don't know the closed code from Autodesk, so it would require some valuable efforts to reverse-engineer the Autodesk code to find a way to create this special case of HATCH in a DXF.
The conclusion is, that you simply create two hatch, one for each square, and you will have a DXF which is valid for OSGeo, Autodesk and LibreCAD.
from librecad.
Related Issues (20)
- Excessive status bar height HOT 6
- line is not detected whe using parallell HOT 3
- Any interest in hierarchical Layers support in LibreCAD? Like this HOT 8
- Opening Window on wayland crashes. HOT 6
- Cannot load a basic DXF file HOT 6
- Entity with LineType = NoPen not being saved correctly
- Small yet nice widget to add - pen palette HOT 3
- Layer with Custom color don't preselect "Custom Color" on Edit Layer Property HOT 1
- Librecad disappearing completely from Mac after force quitting HOT 1
- Line types customization
- Direct Distance Entry HOT 1
- Command line not working HOT 1
- dwg HOT 1
- segmentation fault when drawing angle lines HOT 3
- Dock Widgets expanded with Pen Palette and Layer Tree HOT 2
- FREE SNAP toll doesn't work when pressing Spacebar HOT 13
- "Exclusive Snap Mode" does not have a shortcut key combination HOT 8
- Print Preview Crashes LibreCAD HOT 15
- v2.2.0.x AppImage does not run on Ubuntu 22.04 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 librecad.