A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Watari » Wed Nov 02, 2011 10:33 am
Hi,
I have Newton convex hull creation problem as mentioned in the thread
viewtopic.php?f=12&t=6731&p=47110&hilit=NULL#p47110, it says the problem is fixed in Newton 2.34, but I can only see Newton 2.33 in Google code repository, How can I get Newton 2.34 with the fix for the mentioned issue?
Thanks,
Watari
-
Watari
-
- Posts: 3
- Joined: Wed Nov 02, 2011 10:23 am
by Krystian » Wed Nov 02, 2011 11:52 am
1. If you are on Windows, then download&install
TortoiseSVN2. In explorer right click in any empty folder, and select from popupmenu 'SVN Checkout...', in URL of repository set:
- Code: Select all
http://newton-dynamics.googlecode.com/svn/trunk
click OK, wait for checkout finish. That's all.
(
http://code.google.com/p/newton-dynamic ... e/checkout)
Warning: I'm learning C/CPP/ARM-NEON/Newton/AndroidNDK/OpenGL ES, so whatever I post here, keep in mind that I can be totally wrong ;)
-
Krystian
-
- Posts: 26
- Joined: Thu Jul 21, 2011 3:11 pm
- Location: Poland
by Watari » Fri Nov 11, 2011 7:04 am
Thanks Krystian

-
Watari
-
- Posts: 3
- Joined: Wed Nov 02, 2011 10:23 am
by Watari » Fri Nov 11, 2011 8:56 am
Hi,
I am trying to create ConvexHull collision body, but ConvexHull always return NULL for certain set of vertices.
I used the HEAD version of Newton library (coreLibrary_300) still I have ConvexHull creation problem.
I guess I have the problem as mentioned in this thread
viewtopic.php?f=12&t=6731&p=47110&hilit=convex+hull+NULL#p47110Also I tried with tolerance 0.0001 still it returns NULL.
I attached the sample convex decomposed file, for the first 5 sets of vertices it is returning NULL for this file.
Also find below the set of vertices for which ConvexHull returns NULL.
- Code: Select all
########################################################################
## Hull Piece 1 with 4 vertices and 4 triangles.
########################################################################
v -0.195389599 2.159116983 -1.365844369
v -0.491512328 2.484276533 -1.360741615
v -0.161511719 2.487889528 -1.429711461
v -0.492480367 2.155864000 -1.303752661
f 1 2 3
f 2 1 4
f 4 3 2
f 3 4 1
########################################################################
## Hull Piece 2 with 4 vertices and 4 triangles.
########################################################################
v 0.491512328 2.484276533 1.360741735
v 0.195389584 2.159116983 1.365844369
v 0.492480367 2.155864239 1.303752661
v 0.161511689 2.487889767 1.429711461
f 5 6 7
f 6 5 8
f 8 7 6
f 7 8 5
########################################################################
## Hull Piece 3 with 4 vertices and 4 triangles.
########################################################################
v -1.323549271 2.163568020 0.403325647
v -1.394114852 2.176212311 0.073160797
v -1.460910559 2.503480196 0.023885407
v -1.378080964 2.488638401 0.411432236
f 9 10 11
f 10 9 12
f 12 11 10
f 11 12 9
########################################################################
## Hull Piece 4 with 4 vertices and 4 triangles.
########################################################################
v 0.953944862 2.487843513 -1.087588668
v 0.636263013 2.185950279 -1.235099912
v 0.621568024 2.516664505 -1.311749935
v 0.916023672 2.161692142 -1.046423793
f 13 14 15
f 14 13 16
f 16 15 14
f 15 16 13
########################################################################
## Hull Piece 5 with 4 vertices and 4 triangles.
########################################################################
v -0.636263013 2.185950279 1.235099912
v -0.953944921 2.487843513 1.087588549
v -0.916023672 2.161692142 1.046423793
v -0.621568024 2.516664505 1.311749935
f 17 18 19
f 18 17 20
f 20 19 18
f 19 20 17
-
Watari
-
- Posts: 3
- Joined: Wed Nov 02, 2011 10:23 am
by Julio Jerez » Fri Nov 11, 2011 9:07 am
the convex hull will return NULL is a piece has zero volume. this is not a bug, it is how it is suppose to work.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by donintosh » Tue Nov 22, 2011 4:05 am
Julio Jerez wrote:the convex hull will return NULL is a piece has zero volume. this is not a bug, it is how it is suppose to work.
Ok, thanx for the explanation. Because I thought it to be a bug too. So let's get back to work now.
-
donintosh
-
- Posts: 2
- Joined: Tue Nov 22, 2011 3:59 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 3 guests