What is the technology/algorithm behind Auto Geometry?

Discuss new features and future development.

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

Postby slembcke » Tue Dec 08, 2015 4:31 pm

"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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

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

Postby Joseph39 » Tue Dec 08, 2015 5:24 pm

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.
Joseph39
 
Posts: 10
Joined: Mon Dec 07, 2015 1:50 am

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

Postby slembcke » Tue Dec 08, 2015 10:08 pm

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)
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

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

Postby Joseph39 » Wed Dec 09, 2015 7:03 am

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!!
Joseph39
 
Posts: 10
Joined: Mon Dec 07, 2015 1:50 am

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

Postby slembcke » Wed Dec 09, 2015 11:09 am

No problem. Glad you found it useful.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Previous

Return to Features/Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron