Moderators: Sascha Willems, walaber
ledahut wrote:NewtonWorldConvexCast is a function in newton.h and wiki (return int the number of contact).
In Pascal header this function is declared as procedure.
ledahut wrote:Headers on SVN --> yes in condition that every commit have comments in svn.
Actually Julio does not comment each revision because they are maybe minors update.
But if you (sascha, stucuk...) could be more rigorous and also write history in file, this will be good. (If some days SVN server crash and loose every comments, they will be save in file).
ex: https://glscene.svn.sourceforge.net/svn ... LState.pas
Well, I document every change within the header itself and als within the readme.
Delfi wrote:Here is a suggestion: the delphi header could be now merged and added & distributed with the offical newton SVN repository.
Sascha Willems wrote:As for the header being "merged" into the SVN : I'd happily do this, though you need to realize that I won't always be able to update it as quickly as possible (you know, real life is taking of my spare time)
Julio Jerez wrote:give a few more day ontil everything stabilize a litle more in sorce control,
I am still adding the Mac stuff and some directory structure may still change as I found out that source control in very, very different from client to client.
hopefully this week all will be completed.
Sascha Willems wrote:Actually almost everybody doing something with physics in the delphi/pascal community is using Newton
Changes on 04.04.2011 by Sascha Willems (SW)
+ Updated to 2.33
- Added NewtonSceneSetProxyUserData
- Added NewtonSceneGetProxyUserData
- Added NewtonMeshCreateFirstLayer
- Added NewtonMeshCreateNextLayer
- Added NewtonMeshConvexDecomposition
- Added NewtonMeshVoronoiDecomposition
+ Added NewtonSceneGetFirstProxy (missed in previous release)
+ Added NewtonSceneGetNextProxy (missed in previous release)
+ Added NewtonUserJointSetFeedbackCollectorCallback (missed in previous release)
+ Fixed declaration for NewtonCollisionSetMaxBreakImpactImpulse
+ Fixed several minor spelling errors
+ Some cosmetic changes
void function (int * array)
{
// this is promp to poiter alias sinc ein c++ pointe are simpel vareables
// althoght micorcrosoft compiler is caplable of generating good code for this
// in more compel loop with mor evariable anr registe spill, this code becoem less efficnt
for (i = 0; i < 100; i ++) {
{
// ok on older x86 CPU, but very bad on any risk CPU
*array++ = i;
}
}
void function (int* const array)
{
// this will be generate better inner loop sinc eth copiler is free to cache array int a resister wjith oput worrie of pointer alias
// any compiler generate and very tight code for this or any loop whe the pointer are const.
// more complex loop with more evariable and register spill, this even teh mocrosft compiler produce very Registe assigment, knwoing which veriable are very candidate for caching in registers
for (i = 0; i < 100; i ++) {
{
// this is now a compiler error
//*array++ = i;
// this much beter code generation on must modern CPUs, specilly Risk
array[i] = i;
}
}
typedef void (*NewtonDestroyWorld) (const NewtonWorld* newtonWorld);
typedef void (*NewtonDestroyWorld) (const NewtonWorld* const newtonWorld);
Changes on 12.04.2011 by Sascha Willems (SW)
+ Fixed paramters for NewtonMaterialGetContactForce
+ Fixed paramters for NewtonMaterialGetContactPositionAndNormal
+ Fixed paramters for NewtonMaterialGetContactTangentDirections
Users browsing this forum: No registered users and 4 guests