Jump to content


Convex Hull


7 replies to this topic

#1 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 354 posts

Posted 04 August 2009 - 11:07 PM

Good day , has anyone had any luck with Stan Melax 's convex hull code ?
I tried to integrate in my works and i found it leaks memory quite a lot.
I couldn't fix the problem since the leaks aren't reported by visual studio with accuracy.
I know that the code is used in bullet and in other software , how can it be if it is a memory eater ?
By the way i tried to refactor it using stl with no luck.
It is very difficult to follow and it is written in a criptic way, actually there are even pieces of code that do absolutely nothing!

#2 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 354 posts

Posted 16 August 2009 - 09:57 PM

Ok, problem solved, i wrote my own convex hull library ,thanks to anyone for the help

#3 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 354 posts

Posted 17 August 2009 - 08:50 PM

Would it be usefull for anyone if i posted the code here ?

#4 paul_nicholls

    New Member

  • Members
  • PipPip
  • 12 posts

Posted 18 August 2009 - 03:49 AM

v71 said:

Would it be usefull for anyone if i posted the code here ?

I'm sure it would be :lol:

cheers,
Paul

#5 .oisyn

    DevMaster Staff

  • Moderators
  • 1842 posts

Posted 18 August 2009 - 10:09 AM

Is this a 2d or 3d convex hull?
.edit: ah 3d. Obviously, as the 2d convex hull algorithm is dead simple :)
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.

#6 v71

    Valued Member

  • Members
  • PipPipPipPip
  • 354 posts

Posted 18 August 2009 - 02:14 PM

I was thinking to do an article on that , only if it would be of any use, because it would take a considerable amount of time.

#7 paul_nicholls

    New Member

  • Members
  • PipPip
  • 12 posts

Posted 18 August 2009 - 10:18 PM

v71 said:

I was thinking to do an article on that , only if it would be of any use, because it would take a considerable amount of time.

Just posting the code here would be fine for now :)

Thanks for your hard work v71 :)

cheers,
Paul

#8 JarkkoL

    Senior Member

  • Members
  • PipPipPipPip
  • 475 posts

Posted 19 August 2009 - 10:12 PM

Quick hull should be pretty simple to implement for 3D as well.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users