Page 2 of 2

Re: What is the technology/algorithm behind Auto Geometry?

PostPosted: Tue Dec 08, 2015 4:31 pm
by slembcke
"this library"? Do you mean Chipmunk's autogeometry or the one you linked? I skimmed the one you linked, but I've never used it. I can't really help you much with that.

Chipmunk's autogeometry shouldn't be too hard to separate. You'll still need to include a couple of the headers and alias a few of the types, but it shouldn't be impossible.

Re: What is the technology/algorithm behind Auto Geometry?

PostPosted: Tue Dec 08, 2015 5:24 pm
by Joseph39
first what i meant earlier by the library is the library(chipmunk 6.x) in the example that you supplied and second do you think that i could use the objective c files of the library(chipmunk 6.x) in my c++ project and call the methods directly from there without any problems because that doesn't make any sense.

and remember that the peace of functionality that i need in my project is written in objective c.

or do you mean porting the parts that i need to c++ then using theme.

Re: What is the technology/algorithm behind Auto Geometry?

PostPosted: Tue Dec 08, 2015 10:08 pm
by slembcke
The "Geometry tracer" I posted earlier is straight C. The "load_image" function is written in Obj-C on OS X for a super simple image loading routine, but it's assumed that you can load an image into a RGBA8 buffer on any platform.

Also, the two files I posted originally compile just fine as C++. You don't even need to do any porting, just figure out how to pull out the required components or include all of Chipmunk. (It's only a few dozen KBs of extra code size, probably not worth the effort to extract it)

Re: What is the technology/algorithm behind Auto Geometry?

PostPosted: Wed Dec 09, 2015 7:03 am
by Joseph39
i ported it to c++ by the help of chipmunk 6.2.1 the normal c version

and i tried it and guess What ... it Works!!

so Thank you so very much with a Big capital T Scott Lembcke!!

and another big thanks for your patience with me this whole time!!

Re: What is the technology/algorithm behind Auto Geometry?

PostPosted: Wed Dec 09, 2015 11:09 am
by slembcke
No problem. Glad you found it useful.