A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by McCalloway » Tue Jun 19, 2012 5:05 am
In the tutorials, you're not using dgMatrix but dMatrix, provided in math package. I'm wondering why there are two almost identical classes, and which one should I use for writing my c++ wrapper ? It's just for making the conversion between Newton math library and my own, not for using newton math everywhere in my wrapper.
Also, what does NewtonClass, since most of the code looks C-alike to me ? And finally, I don't see any includes in Newton.h of any files in \newton-dynamics-2.35\coreLibrary_200\source\physics, so what are the dgXXX files ? Is Newton also a wrapper of an other library ?
Sorry if some of these questions sound a bit silly, I'm just trying to understand a bit this promising physics engine

-
McCalloway
-
by Julio Jerez » Tue Jun 19, 2012 7:29 am
the only header for using Newton C interface tha you need is Newton.H all of the dgClass ar for intenal usages.
if you are an expert user you can use the DG Class from the dg core library, but teh are C++ and they all use the Memory manager, so usinsg it requres some more knowladge
There are some people how use many of the functionalyly of the DG code library, for oethe reasons. The DG core is not just to sopport teh library, it is in fact a very pweful compuational geometry library with more that rival and some tiem surapse LEDA and GAL.
but like I say for mose peopel is hiden onder the C inteface.
Newton.C is more or less a Wrapper over the NewtonClass.CPP. Like I say of you are an exper user you can use Newton.CPP but I hav ebeineg using teh C inteface for so long that even I do no use it in C++ anymore.
the D classes are light way implementation of some of the containers, day do no use memory manager so they can be use for anything.
you should use Core 300 from SVN.
if you are going to use a matrix class, use the dMatrix, it si waht I use outsize the core300 projects.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest