NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Executor » Wed Jul 07, 2010 4:11 pm

NewtonMeshGetPointCount and NewtonMeshGetVertexCount what is the difference?
I always use NewtonMeshGetVertexCount, in 2.23 NewtonMeshGetVertexCount return another result.
Executor
 
Posts: 25
Joined: Fri Sep 04, 2009 7:01 am

Re: NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Julio Jerez » Wed Jul 07, 2010 4:23 pm

Oh if you are using that you will certanlly get a crash.
that was a bug in newton 2.22 and lower.

a mesh has point and vertices.
a point is a vertex + the normal + plus the uvs

for example say you have a cube with normals, the nuver of vertex is 8 bu the number of points is 24, and if you UV each face to a diffrent value the numeb of point codul be up 36 for one UV channel or 72 for two UVs, and if you map each triangle to a different uv is the number of point can be as high as 144, while the number of vetirces remeind at 8
all this functionality will make more sance whn teh new Archemedia editor is become more useful.
you can download 2.24 (change the number in the download link so that you can see the state of the editor) and you will see what I mean.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Julio Jerez » Wed Jul 07, 2010 4:24 pm

I am curios, what are you using the mesh for? :mrgreen:
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Executor » Wed Jul 07, 2010 4:55 pm

Julio Jerez wrote:Oh if you are using that you will certanlly get a crash.


I get overwrite memory of my app. And I thought it was a memory leak in Newton. :)

Julio Jerez wrote:I am curios, what are you using the mesh for?


I use mesh for debug visualisation. Not for release version of project.
Executor
 
Posts: 25
Joined: Fri Sep 04, 2009 7:01 am

Re: NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Julio Jerez » Wed Jul 07, 2010 5:24 pm

Ha, yes the newton Mesh is not for rendering it is for utility helper
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Executor » Thu Jul 08, 2010 1:51 am

What would be the best solution?
Executor
 
Posts: 25
Joined: Fri Sep 04, 2009 7:01 am

Re: NewtonMeshGetPointCount vs NewtonMeshGetVertexCount

Postby Julio Jerez » Thu Jul 08, 2010 8:15 am

not is is ok if you are using it for that, I too use it for special effects, like clipping mesh, mapping and other thongs tha will be more obvius when teh editor is online.
Julio Jerez
Moderator
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 2 guests