yofu / dxf Goto Github PK
View Code? Open in Web Editor NEWdxf for golang
Home Page: https://godoc.org/github.com/yofu/dxf
License: MIT License
dxf for golang
Home Page: https://godoc.org/github.com/yofu/dxf
License: MIT License
Unless I missed it, I don't see a license. Do you want to assign one?
Hi,
I bumped into this problem:
func (d *Drawing) LwPolyline(closed bool, vertices ... []float64) (*entity.LwPolyline, error) {
size := len(vertices)
l := entity.NewLwPolyline(size)
for i := 0; i < size; i++ {
l.Vertices[i] = vertices[i]
}
if closed {
l.Close()
}
l.SetLayer(d.CurrentLayer)
d.AddEntity(l)
return l, nil
}
shouldn't this be:
func (d *Drawing) LwPolyline(closed bool, vertices [][]float64) (*entity.LwPolyline, error) {
Where the spread operator is replaced with a [] so the vertices are correct.
I tested this change and it works fine.
Thanks
Hello. Today I've been parsing dxf-file with arcs in entities. This type not implemented in code, so parser stops on this. Maybe you can add option to skip adding entity of unknown type and not returning an error. Or implement this type parser. This may save someone some time debugging
Hello. I have the DXF file and want to get all points this file describes. Provide any example for this, please.
Hi,
Is it possible to add a Block to the drawing?
The Block type does not seem to have an AddEntity method (for instance).
Is there another way to add entities to blocks or is this not implemented yet?
Thanks
I have some .dxf files with unicode characters in them that I want to save as pictures
Hello, first of thank you for this wonderful library.
I'm trying to understand the code, to improve it for my needs.
I noticed that something have a WriteTo(f format.Formatter)
in order to generate
the formatted text while other have a Format(f format.Formatter)
.
Why the two different methods, it's not clear how they are supposed to differ.
Thank you,
Gautam.
Reading through the code, it seems that unifying it into only the Format(format.Formatter)
makes the most sense.
Hi, yofu!
Found data race in concurrent drawing processing.
I think it's relates to handle increments, but had no luck trying to resolve this.
See gist for code and run log
gist
I am doing a drawing job and I need to fill the circle with black. But I don't know how to do it and would like help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.