Coder Social home page Coder Social logo

dxf's People

Contributors

codelingobot avatar davidhubbard avatar gdey avatar noahhl avatar russoj88 avatar yofu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dxf's Issues

License?

Unless I missed it, I don't see a license. Do you want to assign one?

lwpolyline vertices defined with spread

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

feature request: arc

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

how to add block to a drawing

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

Trying to understand.

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.

Data race

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

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.