Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support function example for 3D convex mesh #27

Open
xendian opened this issue Nov 14, 2016 · 6 comments
Open

support function example for 3D convex mesh #27

xendian opened this issue Nov 14, 2016 · 6 comments

Comments

@xendian
Copy link

xendian commented Nov 14, 2016

Hi,
I need to write a support function for convex meshes. Is there any sample code or implementation for this?. Can somebody give me some direction on this?. Thanks.

@OM92
Copy link

OM92 commented Jan 12, 2017

Hi Xendian,

did you found out how to implement this?
It would help me aswell.

Thanks

@xendian
Copy link
Author

xendian commented Jan 13, 2017

no not yet. is there anybody has any say on this?!!.

@jslee02
Copy link
Contributor

jslee02 commented Jan 13, 2017

You could find one here.

@xendian
Copy link
Author

xendian commented Jan 13, 2017

I tried the same implementation..it didn't work out for my case. This doesn't consider the connectivity of the mesh. The reference triangle support function didn't work out either. That is reason, I asked sample code with convex mesh working.

@jslee02
Copy link
Contributor

jslee02 commented Jan 13, 2017

I believe this code works. We don't need to consider the connectivity because we assume that the shape is convex. Checking all the vertices of a convex mesh would be enough to find the supporting point.

One corner case would be having multiple supporting vertices (when the dot products of the vertices and the are all the equal). In that case, we might want to set the supporting point in the middle of the vertices. I think extending the code for the corner case would be straightforward.

Edit: It would be helpful if you could post your code that doesn't work.

@xendian
Copy link
Author

xendian commented Jan 13, 2017

but the contact point differs based on the connectivity. You need to incorporate the connectivity, right?.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants