Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by Bird » Wed Oct 21, 2020 9:37 am
Hi Julio,
I'm trying to add ndShapeConvexHull to my project but I keep hitting the m_edgeCount < 2048 assert on line 209 of ndShapeConvex.cpp when using more complex meshes.
Easy way to reproduce is to change the number of segments in the ndBasicTrigger.cpp to 210 instead of 21.
- Code: Select all
int segments = 210
AddConvexHull(scene, dVector(-2.0f, 0.0f, 2.0f, 1.0f), segments , 0.7f)
;
The same meshes work fine in Newton 3.14.
-
Bird
-
- Posts: 623
- Joined: Tue Nov 22, 2011 1:27 am
by Julio Jerez » Wed Oct 21, 2020 2:00 pm
oh, yes I has a dAlloc and change to a fix size, but I forget that some people do pass huge vertex clouds.
I will fix it in a moment.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Julio Jerez » Wed Oct 21, 2020 2:57 pm
try now, I fixed the memory overrun bug, but I think there is still another one the function that compute the volume if a shape on one size of a plane.
you can see in the repro that there in some orientations the dense shape gives bad volumes.
I will debug it later but is should be good in for your now.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Bird » Wed Oct 21, 2020 3:09 pm
Working now. Thanks for the quick fix!
-
Bird
-
- Posts: 623
- Joined: Tue Nov 22, 2011 1:27 am
by Julio Jerez » Wed Oct 21, 2020 3:57 pm
Nice, I am adding the mesh now and from here we have a decent set of functionality that we can start adding more advance features.
This version of the engine will flip the priorities.
I am now working on practical features that are easier to used for the ordinary user.
I can see how most user have a difficult time with the engine, so I am trying to remedy that.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 0 guests